Exemplo n.º 1
0
 public override void AddCellId(Kitware.VTK.vtkIdTypeArray ids, ePickBollean boolean)
 {
     Debug.Assert(m_selectedCellsIds != null, "请先初始化m_selectedCellsIds数组");
     Debug.WriteLine(ids.GetNumberOfTuples());
     if (boolean == ePickBollean.Add)
     {
         for (int i = 0; i < ids.GetNumberOfTuples(); i++)
         {
             int  intid    = ids.GetValue(i);
             bool hasPoint = m_selectedCellsIds.ContainsKey(intid);
             if (!hasPoint)
             {
                 m_selectedCellsIds.Add(intid, true);
             }
         }
     }
     else if (boolean == ePickBollean.Sub)
     {
         for (int i = 0; i < ids.GetNumberOfTuples(); i++)
         {
             int  intid    = ids.GetValue(i);
             bool hasPoint = m_selectedCellsIds.ContainsKey(intid);
             if (hasPoint)
             {
                 m_selectedCellsIds.Remove(intid);
             }
         }
     }
 }
Exemplo n.º 2
0
        public new static vtkIdTypeArray New()
        {
            vtkIdTypeArray result      = null;
            uint           mteStatus   = 0u;
            uint           mteIndex    = 4294967295u;
            uint           rawRefCount = 0u;
            IntPtr         intPtr      = vtkIdTypeArray.vtkIdTypeArray_New(ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                result = (vtkIdTypeArray)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
            }
            return(result);
        }
Exemplo n.º 3
0
        public vtkModelMetadata ExtractModelMetadata(vtkIdTypeArray globalCellIdList, vtkDataSet grid)
        {
            vtkModelMetadata vtkModelMetadata = null;
            uint             mteStatus        = 0u;
            uint             mteIndex         = 4294967295u;
            uint             rawRefCount      = 0u;
            IntPtr           intPtr           = vtkModelMetadata.vtkModelMetadata_ExtractModelMetadata_09(base.GetCppThis(), (globalCellIdList == null) ? default(HandleRef) : globalCellIdList.GetCppThis(), (grid == null) ? default(HandleRef) : grid.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkModelMetadata = (vtkModelMetadata)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkModelMetadata.Register(null);
                }
            }
            return(vtkModelMetadata);
        }
        public virtual vtkIdTypeArray GetDimensionLengths()
        {
            vtkIdTypeArray vtkIdTypeArray = null;
            uint           mteStatus      = 0u;
            uint           mteIndex       = 4294967295u;
            uint           rawRefCount    = 0u;
            IntPtr         intPtr         = vtkMINCImageAttributes.vtkMINCImageAttributes_GetDimensionLengths_11(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkIdTypeArray = (vtkIdTypeArray)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkIdTypeArray.Register(null);
                }
            }
            return(vtkIdTypeArray);
        }
Exemplo n.º 5
0
        public vtkIdTypeArray BuildMapForDuplicatePoints(float tolerance)
        {
            vtkIdTypeArray vtkIdTypeArray = null;
            uint           mteStatus      = 0u;
            uint           mteIndex       = 4294967295u;
            uint           rawRefCount    = 0u;
            IntPtr         intPtr         = vtkKdTree.vtkKdTree_BuildMapForDuplicatePoints_06(base.GetCppThis(), tolerance, ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkIdTypeArray = (vtkIdTypeArray)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkIdTypeArray.Register(null);
                }
            }
            return(vtkIdTypeArray);
        }
Exemplo n.º 6
0
        public new static vtkIdTypeArray SafeDownCast(vtkObjectBase o)
        {
            vtkIdTypeArray vtkIdTypeArray = null;
            uint           mteStatus      = 0u;
            uint           mteIndex       = 4294967295u;
            uint           rawRefCount    = 0u;
            IntPtr         intPtr         = vtkIdTypeArray.vtkIdTypeArray_SafeDownCast_19((o == null) ? default(HandleRef) : o.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkIdTypeArray = (vtkIdTypeArray)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkIdTypeArray.Register(null);
                }
            }
            return(vtkIdTypeArray);
        }
        public vtkIdTypeArray GetSelectedRowIds(int selection)
        {
            vtkIdTypeArray vtkIdTypeArray = null;
            uint           mteStatus      = 0u;
            uint           mteIndex       = 4294967295u;
            uint           rawRefCount    = 0u;
            IntPtr         intPtr         = vtkBivariateLinearTableThreshold.vtkBivariateLinearTableThreshold_GetSelectedRowIds_17(base.GetCppThis(), selection, ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkIdTypeArray = (vtkIdTypeArray)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkIdTypeArray.Register(null);
                }
            }
            return(vtkIdTypeArray);
        }
Exemplo n.º 8
0
        public vtkExodusModel ExtractExodusModel(vtkIdTypeArray globalCellIdList, vtkUnstructuredGrid grid)
        {
            vtkExodusModel vtkExodusModel = null;
            uint           mteStatus      = 0u;
            uint           mteIndex       = 4294967295u;
            uint           rawRefCount    = 0u;
            IntPtr         intPtr         = vtkExodusModel.vtkExodusModel_ExtractExodusModel_03(base.GetCppThis(), (globalCellIdList == null) ? default(HandleRef) : globalCellIdList.GetCppThis(), (grid == null) ? default(HandleRef) : grid.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkExodusModel = (vtkExodusModel)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkExodusModel.Register(null);
                }
            }
            return(vtkExodusModel);
        }
Exemplo n.º 9
0
        public virtual vtkIdTypeArray GetSelection()
        {
            vtkIdTypeArray vtkIdTypeArray = null;
            uint           mteStatus      = 0u;
            uint           mteIndex       = 4294967295u;
            uint           rawRefCount    = 0u;
            IntPtr         intPtr         = vtkPlot.vtkPlot_GetSelection_10(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkIdTypeArray = (vtkIdTypeArray)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkIdTypeArray.Register(null);
                }
            }
            return(vtkIdTypeArray);
        }
        public virtual vtkIdTypeArray GetValidPoints()
        {
            vtkIdTypeArray vtkIdTypeArray = null;
            uint           mteStatus      = 0u;
            uint           mteIndex       = 4294967295u;
            uint           rawRefCount    = 0u;
            IntPtr         intPtr         = vtkGenericProbeFilter.vtkGenericProbeFilter_GetValidPoints_02(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkIdTypeArray = (vtkIdTypeArray)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkIdTypeArray.Register(null);
                }
            }
            return(vtkIdTypeArray);
        }
        public virtual vtkIdTypeArray GetHierarchicalOrder()
        {
            vtkIdTypeArray vtkIdTypeArray = null;
            uint           mteStatus      = 0u;
            uint           mteIndex       = 4294967295u;
            uint           rawRefCount    = 0u;
            IntPtr         intPtr         = vtkSimple3DCirclesStrategy.vtkSimple3DCirclesStrategy_GetHierarchicalOrder_12(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkIdTypeArray = (vtkIdTypeArray)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkIdTypeArray.Register(null);
                }
            }
            return(vtkIdTypeArray);
        }
        public vtkIdTypeArray GetPointsInRegion(int leafNodeId)
        {
            vtkIdTypeArray vtkIdTypeArray = null;
            uint           mteStatus      = 0u;
            uint           mteIndex       = 4294967295u;
            uint           rawRefCount    = 0u;
            IntPtr         intPtr         = vtkOctreePointLocator.vtkOctreePointLocator_GetPointsInRegion_18(base.GetCppThis(), leafNodeId, ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkIdTypeArray = (vtkIdTypeArray)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkIdTypeArray.Register(null);
                }
            }
            return(vtkIdTypeArray);
        }
Exemplo n.º 13
0
        public vtkIdTypeArray GetFaces()
        {
            vtkIdTypeArray vtkIdTypeArray = null;
            uint           mteStatus      = 0u;
            uint           mteIndex       = 4294967295u;
            uint           rawRefCount    = 0u;
            IntPtr         intPtr         = vtkUnstructuredGrid.vtkUnstructuredGrid_GetFaces_28(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkIdTypeArray = (vtkIdTypeArray)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkIdTypeArray.Register(null);
                }
            }
            return(vtkIdTypeArray);
        }
Exemplo n.º 14
0
        public override vtkIdTypeArray GetNextCells()
        {
            vtkIdTypeArray vtkIdTypeArray = null;
            uint           mteStatus      = 0u;
            uint           mteIndex       = 4294967295u;
            uint           rawRefCount    = 0u;
            IntPtr         intPtr         = vtkCellCenterDepthSort.vtkCellCenterDepthSort_GetNextCells_01(base.GetCppThis(), ref mteStatus, ref mteIndex, ref rawRefCount);

            if (IntPtr.Zero != intPtr)
            {
                bool flag;
                vtkIdTypeArray = (vtkIdTypeArray)Methods.CreateWrappedObject(mteStatus, mteIndex, rawRefCount, intPtr, true, out flag);
                if (flag)
                {
                    vtkIdTypeArray.Register(null);
                }
            }
            return(vtkIdTypeArray);
        }
Exemplo n.º 15
0
 public void ReorderOutVertices(long v, vtkIdTypeArray vertices)
 {
     vtkGraph.vtkGraph_ReorderOutVertices_49(base.GetCppThis(), v, (vertices == null) ? default(HandleRef) : vertices.GetCppThis());
 }
Exemplo n.º 16
0
 public void GetInducedEdges(vtkIdTypeArray verts, vtkIdTypeArray edges)
 {
     vtkGraph.vtkGraph_GetInducedEdges_28(base.GetCppThis(), (verts == null) ? default(HandleRef) : verts.GetCppThis(), (edges == null) ? default(HandleRef) : edges.GetCppThis());
 }
Exemplo n.º 17
0
 public virtual void ReorderChildren(long parent, vtkIdTypeArray children)
 {
     vtkTree.vtkTree_ReorderChildren_15(base.GetCppThis(), parent, (children == null) ? default(HandleRef) : children.GetCppThis());
 }
Exemplo n.º 18
0
 public static void DecomposeAPolyhedronCell(vtkCellArray polyhedronCellArray, ref long nCellpts, ref long nCellfaces, vtkCellArray cellArray, vtkIdTypeArray faces)
 {
     vtkUnstructuredGrid.vtkUnstructuredGrid_DecomposeAPolyhedronCell_07((polyhedronCellArray == null) ? default(HandleRef) : polyhedronCellArray.GetCppThis(), ref nCellpts, ref nCellfaces, (cellArray == null) ? default(HandleRef) : cellArray.GetCppThis(), (faces == null) ? default(HandleRef) : faces.GetCppThis());
 }
Exemplo n.º 19
0
 public virtual void SetSelection(vtkIdTypeArray id)
 {
     vtkPlot.vtkPlot_SetSelection_25(base.GetCppThis(), (id == null) ? default(HandleRef) : id.GetCppThis());
 }
Exemplo n.º 20
0
 public void GetSelectedVertices(vtkIdTypeArray VertexPointers, vtkIdTypeArray VertexIds)
 {
     vtkVisibleCellSelector.vtkVisibleCellSelector_GetSelectedVertices_07(base.GetCppThis(), (VertexPointers == null) ? default(HandleRef) : VertexPointers.GetCppThis(), (VertexIds == null) ? default(HandleRef) : VertexIds.GetCppThis());
 }
Exemplo n.º 21
0
 public void GetSelectedIds(vtkIdTypeArray ToCopyInto)
 {
     vtkVisibleCellSelector.vtkVisibleCellSelector_GetSelectedIds_05(base.GetCppThis(), (ToCopyInto == null) ? default(HandleRef) : ToCopyInto.GetCppThis());
 }
Exemplo n.º 22
0
 public void SetCells(vtkUnsignedCharArray cellTypes, vtkIdTypeArray cellLocations, vtkCellArray cells, vtkIdTypeArray faceLocations, vtkIdTypeArray faces)
 {
     vtkUnstructuredGrid.vtkUnstructuredGrid_SetCells_60(base.GetCppThis(), (cellTypes == null) ? default(HandleRef) : cellTypes.GetCppThis(), (cellLocations == null) ? default(HandleRef) : cellLocations.GetCppThis(), (cells == null) ? default(HandleRef) : cells.GetCppThis(), (faceLocations == null) ? default(HandleRef) : faceLocations.GetCppThis(), (faces == null) ? default(HandleRef) : faces.GetCppThis());
 }
Exemplo n.º 23
0
 public void GetIdsOfCellsOfType(int type, vtkIdTypeArray array)
 {
     vtkUnstructuredGrid.vtkUnstructuredGrid_GetIdsOfCellsOfType_30(base.GetCppThis(), type, (array == null) ? default(HandleRef) : array.GetCppThis());
 }
 public virtual void SetHierarchicalOrder(vtkIdTypeArray _arg)
 {
     vtkSimple3DCirclesStrategy.vtkSimple3DCirclesStrategy_SetHierarchicalOrder_34(base.GetCppThis(), (_arg == null) ? default(HandleRef) : _arg.GetCppThis());
 }
Exemplo n.º 25
0
 public virtual void CreateInitialClusterCenters(long numToAllocate, vtkIdTypeArray numberOfClusters, vtkTable inData, vtkTable curClusterElements, vtkTable newClusterElements)
 {
     vtkPKMeansStatistics.vtkPKMeansStatistics_CreateInitialClusterCenters_01(base.GetCppThis(), numToAllocate, (numberOfClusters == null) ? default(HandleRef) : numberOfClusters.GetCppThis(), (inData == null) ? default(HandleRef) : inData.GetCppThis(), (curClusterElements == null) ? default(HandleRef) : curClusterElements.GetCppThis(), (newClusterElements == null) ? default(HandleRef) : newClusterElements.GetCppThis());
 }
Exemplo n.º 26
0
 public static void DecomposeAPolyhedronCell(long nCellFaces, IntPtr inFaceStream, ref long nCellpts, vtkCellArray cellArray, vtkIdTypeArray faces)
 {
     vtkUnstructuredGrid.vtkUnstructuredGrid_DecomposeAPolyhedronCell_09(nCellFaces, inFaceStream, ref nCellpts, (cellArray == null) ? default(HandleRef) : cellArray.GetCppThis(), (faces == null) ? default(HandleRef) : faces.GetCppThis());
 }
Exemplo n.º 27
0
 public virtual void UpdateClusterCenters(vtkTable newClusterElements, vtkTable curClusterElements, vtkIdTypeArray numMembershipChanges, vtkIdTypeArray numElementsInCluster, vtkDoubleArray error, vtkIdTypeArray startRunID, vtkIdTypeArray endRunID, vtkIntArray computeRun)
 {
     vtkPKMeansStatistics.vtkPKMeansStatistics_UpdateClusterCenters_10(base.GetCppThis(), (newClusterElements == null) ? default(HandleRef) : newClusterElements.GetCppThis(), (curClusterElements == null) ? default(HandleRef) : curClusterElements.GetCppThis(), (numMembershipChanges == null) ? default(HandleRef) : numMembershipChanges.GetCppThis(), (numElementsInCluster == null) ? default(HandleRef) : numElementsInCluster.GetCppThis(), (error == null) ? default(HandleRef) : error.GetCppThis(), (startRunID == null) ? default(HandleRef) : startRunID.GetCppThis(), (endRunID == null) ? default(HandleRef) : endRunID.GetCppThis(), (computeRun == null) ? default(HandleRef) : computeRun.GetCppThis());
 }
 public void FindPointsInArea(IntPtr area, vtkIdTypeArray ids, bool clearArray)
 {
     vtkOctreePointLocator.vtkOctreePointLocator_FindPointsInArea_08(base.GetCppThis(), area, (ids == null) ? default(HandleRef) : ids.GetCppThis(), clearArray ? (byte)1 : (byte)0);
 }
Exemplo n.º 29
0
 public void PrintSelectedIds(vtkIdTypeArray IdsToPrint)
 {
     vtkVisibleCellSelector.vtkVisibleCellSelector_PrintSelectedIds_12(base.GetCppThis(), (IdsToPrint == null) ? default(HandleRef) : IdsToPrint.GetCppThis());
 }
 public virtual void Begin(vtkIdTypeArray arg0)
 {
     vtkLabelHierarchyIterator.vtkLabelHierarchyIterator_Begin_01(base.GetCppThis(), (arg0 == null) ? default(HandleRef) : arg0.GetCppThis());
 }