#include <vtkCellArray.h>
Inheritance diagram for vtkCellArray:
vtkCellArray is a supporting object that explicitly represents cell connectivity. The cell array structure is a raw integer list of the form: (n,id1,id2,...,idn, n,id1,id2,...,idn, ...) where n is the number of points in the cell, and id is a zero-offset index into an associated point list.
Advantages of this data structure are its compactness, simplicity, and easy interface to external data. However, it is totally inadequate for random access. This functionality (when necessary) is accomplished by using the vtkCellTypes and vtkCellLinks objects to extend the definition of the data structure.
Definition at line 66 of file vtkCellArray.h.
|
Reimplemented from vtkObject. Definition at line 69 of file vtkCellArray.h. |
|
|
|
|
|
Reimplemented from vtkObject. |
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkObject. |
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. Reimplemented from vtkObject. |
|
Reimplemented from vtkObject. |
|
Instantiate cell array (connectivity list). Reimplemented from vtkObject. |
|
Allocate memory and set the size to extend by. Definition at line 76 of file vtkCellArray.h. References vtkIdType. |
|
Free any memory and reset to an empty state. Definition at line 82 of file vtkCellArray.h. |
|
Get the number of cells in the array. Definition at line 88 of file vtkCellArray.h. References vtkIdType. |
|
Utility routines help manage memory of cell array. EstimateSize() returns a value used to initialize and allocate memory for array based on number of cells and maximum number of points making up cell. If every cell is the same size (in terms of number of points), then the memory estimate is guaranteed exact. (If not exact, use Squeeze() to reclaim any extra memory.) Definition at line 99 of file vtkCellArray.h. References vtkIdType. |
|
A cell traversal methods that is more efficient than vtkDataSet traversal methods. InitTraversal() initializes the traversal of the list of cells. Definition at line 106 of file vtkCellArray.h. |
|
A cell traversal methods that is more efficient than vtkDataSet traversal methods. GetNextCell() gets the next cell in the list. If end of list is encountered, 0 is returned. Definition at line 327 of file vtkCellArray.h. References vtkDataArray::GetMaxId(), vtkIdTypeArray::GetPointer(), vtkIdTypeArray::GetValue(), Ia, TraversalLocation, and vtkIdType. |
|
Get the size of the allocated connectivity array. Definition at line 115 of file vtkCellArray.h. References vtkIdType. |
|
Get the total number of entries (i.e., data values) in the connectivity array. This may be much less than the allocated size (i.e., return value from GetSize().) Definition at line 123 of file vtkCellArray.h. References vtkIdType. |
|
Internal method used to retrieve a cell given an offset into the internal array. Definition at line 343 of file vtkCellArray.h. References vtkIdTypeArray::GetPointer(), vtkIdTypeArray::GetValue(), Ia, and vtkIdType. |
|
Insert a cell object. Return the cell id of the cell. Definition at line 300 of file vtkCellArray.h. References vtkIdList::GetId(), vtkDataArray::GetMaxId(), vtkCell::GetNumberOfPoints(), Ia, InsertLocation, NumberOfCells, vtkCell::PointIds, vtkIdType, and vtkIdTypeArray::WritePointer(). |
|
Create a cell by specifying the number of points and an array of point id's. Return the cell id of the cell. Definition at line 249 of file vtkCellArray.h. References vtkDataArray::GetMaxId(), Ia, InsertLocation, NumberOfCells, vtkIdType, and vtkIdTypeArray::WritePointer(). |
|
Create a cell by specifying a list of point ids. Return the cell id of the cell. Definition at line 265 of file vtkCellArray.h. References vtkIdList::GetId(), vtkDataArray::GetMaxId(), vtkIdList::GetNumberOfIds(), Ia, InsertLocation, NumberOfCells, vtkIdType, and vtkIdTypeArray::WritePointer(). |
|
Create cells by specifying count, and then adding points one at a time using method InsertCellPoint(). If you don't know the count initially, use the method UpdateCellCount() to complete the cell. Return the cell id of the cell. Definition at line 282 of file vtkCellArray.h. References Ia, InsertLocation, vtkIdTypeArray::InsertNextValue(), NumberOfCells, and vtkIdType. |
|
Used in conjunction with InsertNextCell(int npts) to add another point to the list of cells. Definition at line 290 of file vtkCellArray.h. References Ia, id, vtkIdTypeArray::InsertValue(), and vtkIdType. |
|
Used in conjunction with InsertNextCell(int npts) and InsertCellPoint() to update the number of points defining the cell. Definition at line 295 of file vtkCellArray.h. References Ia, and vtkIdTypeArray::SetValue(). |
|
Computes the current insertion location within the internal array. Used in conjunction with GetCell(int loc,...). Definition at line 159 of file vtkCellArray.h. References vtkIdType. |
|
Get/Set the current traversal location. Definition at line 165 of file vtkCellArray.h. References vtkIdType. |
|
Get/Set the current traversal location. Definition at line 167 of file vtkCellArray.h. References vtkIdType. |
|
Computes the current traversal location within the internal array. Used in conjunction with GetCell(int loc,...). Definition at line 174 of file vtkCellArray.h. References vtkIdType. |
|
Special method inverts ordering of current cell. Must be called carefully or the cell topology may be corrupted. Definition at line 351 of file vtkCellArray.h. References vtkIdTypeArray::GetPointer(), vtkIdTypeArray::GetValue(), Ia, and vtkIdType. |
|
Replace the point ids of the cell with a different list of point ids. Definition at line 365 of file vtkCellArray.h. References vtkIdTypeArray::GetPointer(), Ia, and vtkIdType. |
|
Returns the size of the largest cell. The size is the number of points defining the cell. |
|
Get pointer to array of cell data. Definition at line 191 of file vtkCellArray.h. References vtkIdType. |
|
Get pointer to data array for purpose of direct writes of data. Size is the total storage consumed by the cell array. ncells is the number of cells represented in the array. Definition at line 374 of file vtkCellArray.h. References Ia, InsertLocation, NumberOfCells, TraversalLocation, vtkIdType, and vtkIdTypeArray::WritePointer(). |
|
Define multiple cells by providing a connectivity list. The list is in the form (npts,p0,p1,...p(npts-1), repeated for each cell). Be careful using this method because it discards the old cells, and anything referring these cells becomes invalid (for example, if BuildCells() has been called see vtkPolyData). The traversal location is reset to the beginning of the list; the insertion location is set to the end of the list. |
|
Perform a deep copy (no reference counting) of the given cell array. |
|
Return the underlying data as a data array. Definition at line 214 of file vtkCellArray.h. |
|
Reuse list. Reset to initial condition. Definition at line 318 of file vtkCellArray.h. References Ia, InsertLocation, NumberOfCells, vtkDataArray::Reset(), and TraversalLocation. |
|
Reclaim any extra memory. Definition at line 223 of file vtkCellArray.h. |
|
Return the memory in kilobytes consumed by this cell array. Used to support streaming and reading/writing data. The value returned is guaranteed to be greater than or equal to the memory required to actually represent the data represented by this object. The information returned is valid only after the pipeline has been updated. |
|
Definition at line 239 of file vtkCellArray.h. Referenced by InsertNextCell(), Reset(), and WritePointer(). |
|
Definition at line 240 of file vtkCellArray.h. Referenced by InsertNextCell(), Reset(), and WritePointer(). |
|
Definition at line 241 of file vtkCellArray.h. Referenced by GetNextCell(), Reset(), and WritePointer(). |
|
Definition at line 242 of file vtkCellArray.h. Referenced by GetCell(), GetNextCell(), InsertCellPoint(), InsertNextCell(), ReplaceCell(), Reset(), ReverseCell(), UpdateCellCount(), and WritePointer(). |