public VtkToUnity(Kitware.VTK.vtkAlgorithmOutput outputPort, string name) { this.name = name; triangleFilter = Kitware.VTK.vtkTriangleFilter.New(); triangleFilter.SetInputConnection(outputPort); go = new GameObject(name); MeshFilter meshFilter = go.AddComponent <MeshFilter>(); meshFilter.sharedMesh = mesh; go.AddComponent <MeshRenderer>(); }
public new static vtkAlgorithmOutput New() { vtkAlgorithmOutput result = null; uint mteStatus = 0u; uint mteIndex = 4294967295u; uint rawRefCount = 0u; IntPtr intPtr = vtkAlgorithmOutput.vtkAlgorithmOutput_New(ref mteStatus, ref mteIndex, ref rawRefCount); if (IntPtr.Zero != intPtr) { bool flag; result = (vtkAlgorithmOutput)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag); } return(result); }
public VtkToUnity(Kitware.VTK.vtkAlgorithmOutput outputPort, GameObject newGo) { name = newGo.name; triangleFilter = Kitware.VTK.vtkTriangleFilter.New(); triangleFilter.SetInputConnection(outputPort); GameObject.DestroyImmediate(newGo.GetComponent <MeshFilter>()); GameObject.DestroyImmediate(newGo.GetComponent <MeshRenderer>()); go = newGo; MeshFilter meshFilter = go.AddComponent <MeshFilter> (); meshFilter.sharedMesh = mesh; go.AddComponent <MeshRenderer> (); }
public virtual vtkAlgorithmOutput GetProducerPort(vtkDataObject arg0) { vtkAlgorithmOutput vtkAlgorithmOutput = null; uint mteStatus = 0u; uint mteIndex = 4294967295u; uint rawRefCount = 0u; IntPtr intPtr = vtkExecutive.vtkExecutive_GetProducerPort_18(base.GetCppThis(), (arg0 == null) ? default(HandleRef) : arg0.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount); if (IntPtr.Zero != intPtr) { bool flag; vtkAlgorithmOutput = (vtkAlgorithmOutput)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag); if (flag) { vtkAlgorithmOutput.Register(null); } } return(vtkAlgorithmOutput); }
public virtual vtkAlgorithmOutput GetInternalSelectionOutputPort() { vtkAlgorithmOutput vtkAlgorithmOutput = null; uint mteStatus = 0u; uint mteIndex = 4294967295u; uint rawRefCount = 0u; IntPtr intPtr = vtkDataRepresentation.vtkDataRepresentation_GetInternalSelectionOutputPort_13(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount); if (IntPtr.Zero != intPtr) { bool flag; vtkAlgorithmOutput = (vtkAlgorithmOutput)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag); if (flag) { vtkAlgorithmOutput.Register(null); } } return(vtkAlgorithmOutput); }
public override vtkAlgorithmOutput GetProducerPort() { vtkAlgorithmOutput vtkAlgorithmOutput = null; uint mteStatus = 0u; uint mteIndex = 4294967295u; uint rawRefCount = 0u; IntPtr intPtr = vtkCompositeDataSet.vtkCompositeDataSet_GetProducerPort_10(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount); if (IntPtr.Zero != intPtr) { bool flag; vtkAlgorithmOutput = (vtkAlgorithmOutput)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag); if (flag) { vtkAlgorithmOutput.Register(null); } } return(vtkAlgorithmOutput); }
public vtkAlgorithmOutput GetInputConnection(int port, int index) { vtkAlgorithmOutput vtkAlgorithmOutput = null; uint mteStatus = 0u; uint mteIndex = 4294967295u; uint rawRefCount = 0u; IntPtr intPtr = vtkAlgorithm.vtkAlgorithm_GetInputConnection_12(base.GetCppThis(), port, index, ref mteStatus, ref mteIndex, ref rawRefCount); if (IntPtr.Zero != intPtr) { bool flag; vtkAlgorithmOutput = (vtkAlgorithmOutput)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag); if (flag) { vtkAlgorithmOutput.Register(null); } } return(vtkAlgorithmOutput); }
public vtkDataRepresentation AddRepresentationFromInputConnection(vtkAlgorithmOutput conn) { vtkDataRepresentation vtkDataRepresentation = null; uint mteStatus = 0u; uint mteIndex = 4294967295u; uint rawRefCount = 0u; IntPtr intPtr = vtkView.vtkView_AddRepresentationFromInputConnection_03(base.GetCppThis(), (conn == null) ? default(HandleRef) : conn.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount); if (IntPtr.Zero != intPtr) { bool flag; vtkDataRepresentation = (vtkDataRepresentation)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag); if (flag) { vtkDataRepresentation.Register(null); } } return(vtkDataRepresentation); }
public vtkAlgorithmOutput GetClippedOutputPort() { vtkAlgorithmOutput vtkAlgorithmOutput = null; uint mteStatus = 0u; uint mteIndex = 4294967295u; uint rawRefCount = 0u; IntPtr intPtr = vtkClipPolyData.vtkClipPolyData_GetClippedOutputPort_08(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount); if (IntPtr.Zero != intPtr) { bool flag; vtkAlgorithmOutput = (vtkAlgorithmOutput)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag); if (flag) { vtkAlgorithmOutput.Register(null); } } return(vtkAlgorithmOutput); }
public override vtkAlgorithmOutput GetInternalAnnotationOutputPort(int port) { vtkAlgorithmOutput vtkAlgorithmOutput = null; uint mteStatus = 0u; uint mteIndex = 4294967295u; uint rawRefCount = 0u; IntPtr intPtr = vtkEmptyRepresentation.vtkEmptyRepresentation_GetInternalAnnotationOutputPort_02(base.GetCppThis(), port, ref mteStatus, ref mteIndex, ref rawRefCount); if (IntPtr.Zero != intPtr) { bool flag; vtkAlgorithmOutput = (vtkAlgorithmOutput)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag); if (flag) { vtkAlgorithmOutput.Register(null); } } return(vtkAlgorithmOutput); }
public new static vtkAlgorithmOutput SafeDownCast(vtkObjectBase o) { vtkAlgorithmOutput vtkAlgorithmOutput = null; uint mteStatus = 0u; uint mteIndex = 4294967295u; uint rawRefCount = 0u; IntPtr intPtr = vtkAlgorithmOutput.vtkAlgorithmOutput_SafeDownCast_07((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount); if (IntPtr.Zero != intPtr) { bool flag; vtkAlgorithmOutput = (vtkAlgorithmOutput)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag); if (flag) { vtkAlgorithmOutput.Register(null); } } return(vtkAlgorithmOutput); }
public void SetSourceConnection(vtkAlgorithmOutput algOutput) { vtkStreamTracer.vtkStreamTracer_SetSourceConnection_48(base.GetCppThis(), (algOutput == null) ? default(HandleRef) : algOutput.GetCppThis()); }
public void SetVertexTableConnection(vtkAlgorithmOutput arg0) { vtkTableToGraph.vtkTableToGraph_SetVertexTableConnection_18(base.GetCppThis(), (arg0 == null) ? default(HandleRef) : arg0.GetCppThis()); }
public void SetButtonGeometryConnection(vtkAlgorithmOutput algOutput) { vtkTexturedButtonRepresentation.vtkTexturedButtonRepresentation_SetButtonGeometryConnection_26(base.GetCppThis(), (algOutput == null) ? default(HandleRef) : algOutput.GetCppThis()); }
public void SetSelectionConnection(vtkAlgorithmOutput algOutput) { vtkExtractSelectionBase.vtkExtractSelectionBase_SetSelectionConnection_09(base.GetCppThis(), (algOutput == null) ? default(HandleRef) : algOutput.GetCppThis()); }
public void SetGraphConnection(vtkAlgorithmOutput arg0) { vtkExpandSelectedGraph.vtkExpandSelectedGraph_SetGraphConnection_15(base.GetCppThis(), (arg0 == null) ? default(HandleRef) : arg0.GetCppThis()); }
public virtual void ReplaceNthInputConnection(int idx, vtkAlgorithmOutput input) { vtkImageAppend.vtkImageAppend_ReplaceNthInputConnection_12(base.GetCppThis(), idx, (input == null) ? default(HandleRef) : input.GetCppThis()); }
public virtual void AddInputConnection(int port, vtkAlgorithmOutput input) { vtkAlgorithm.vtkAlgorithm_AddInputConnection_03(base.GetCppThis(), port, (input == null) ? default(HandleRef) : input.GetCppThis()); }
public void SetSourceConnection(vtkAlgorithmOutput algOutput) { vtkGlyph3DMapper.vtkGlyph3DMapper_SetSourceConnection_63(base.GetCppThis(), (algOutput == null) ? default(HandleRef) : algOutput.GetCppThis()); }
public void SetInputTableConnection(vtkAlgorithmOutput cxn) { vtkComputeHistogram2DOutliers.vtkComputeHistogram2DOutliers_SetInputTableConnection_10(base.GetCppThis(), (cxn == null) ? default(HandleRef) : cxn.GetCppThis()); }
public void SetVectorsConnection(vtkAlgorithmOutput algOutput) { vtkMergeFilter.vtkMergeFilter_SetVectorsConnection_24(base.GetCppThis(), (algOutput == null) ? default(HandleRef) : algOutput.GetCppThis()); }
public void AddSourceConnection(vtkAlgorithmOutput input) { vtkTemporalStreamTracer.vtkTemporalStreamTracer_AddSourceConnection_01(base.GetCppThis(), (input == null) ? default(HandleRef) : input.GetCppThis()); }
public void SetSplatConnection(vtkAlgorithmOutput arg0) { vtkFastSplatter.vtkFastSplatter_SetSplatConnection_26(base.GetCppThis(), (arg0 == null) ? default(HandleRef) : arg0.GetCppThis()); }
public void SetSourceConnection(vtkAlgorithmOutput algOutput) { vtkTensorGlyph.vtkTensorGlyph_SetSourceConnection_39(base.GetCppThis(), (algOutput == null) ? default(HandleRef) : algOutput.GetCppThis()); }
public virtual void SetInputConnection(vtkAlgorithmOutput input) { vtkImageViewer.vtkImageViewer_SetInputConnection_27(base.GetCppThis(), (input == null) ? default(HandleRef) : input.GetCppThis()); }
public virtual void PrepareInputConnections(vtkAlgorithmOutput graphConn, vtkAlgorithmOutput treeConn, vtkAlgorithmOutput annConn) { vtkHierarchicalGraphPipeline.vtkHierarchicalGraphPipeline_PrepareInputConnections_22(base.GetCppThis(), (graphConn == null) ? default(HandleRef) : graphConn.GetCppThis(), (treeConn == null) ? default(HandleRef) : treeConn.GetCppThis(), (annConn == null) ? default(HandleRef) : annConn.GetCppThis()); }
public virtual void AddLabels(vtkAlgorithmOutput conn) { vtkRenderView.vtkRenderView_AddLabels_01(base.GetCppThis(), (conn == null) ? default(HandleRef) : conn.GetCppThis()); }
public void SetSourceConnection(vtkAlgorithmOutput algOutput) { vtkProbeFilter.vtkProbeFilter_SetSourceConnection_11(base.GetCppThis(), (algOutput == null) ? default(HandleRef) : algOutput.GetCppThis()); }
public void RemoveRepresentation(vtkAlgorithmOutput rep) { vtkView.vtkView_RemoveRepresentation_16(base.GetCppThis(), (rep == null) ? default(HandleRef) : rep.GetCppThis()); }
public void SetAnnotationLayersConnection(vtkAlgorithmOutput arg0) { vtkExtractSelectedGraph.vtkExtractSelectedGraph_SetAnnotationLayersConnection_10(base.GetCppThis(), (arg0 == null) ? default(HandleRef) : arg0.GetCppThis()); }