Documentation for vtkCellTypes

vtkCellTypes - object provides direct access to cells in vtkCellArray and type information

Super Class: vtkObject

Description:

This class is a supplemental object to vtkCellArray to allow random access into cells as well as representing cell type information. The "location" field is the location in the vtkCellArray list in terms of an integer offset. An integer offset was used instead of a pointer for easy storage and inter-process communication. The type information is defined in the file vtkCellType.h.

 

Caveats:

Sometimes this class is used to pass type information independent of the random access (i.e., location) information. For example, see vtkDataSet::GetCellTypes(). If you use the class in this way, you can use a location value of -1.

 

See Also:

vtkCellArray vtkCellLinks

 

Methods:

void vtkCellTypes ()
void vtkCellTypes (int ,int )
void vtkCellTypes ()
static vtkCellTypes *New ()
const char *GetClassName ()
int Allocate (int ,int )
void InsertCell (int ,unsigned char ,int )
int InsertNextCell (unsigned char ,int )
int GetCellLocation (int )
void DeleteCell (int )
int GetNumberOfTypes ()
int IsType (unsigned char )
int InsertNextType (unsigned char )
unknown &GetCell (int )
unsigned char GetCellType (int )
void Squeeze ()
void Reset ()
unknown *Resize (int )

 

Detailed Method Descriptions:

Allocate memory for this array. Delete old storage only if necessary.

int Allocate (int ,int )

Add a cell at specified id.

void InsertCell (int ,unsigned char ,int )

Add a cell to the object in the next available slot.

int InsertNextCell (unsigned char ,int )

Return the location of the cell in the associated vtkCellArray.

int GetCellLocation (int )

Delete cell by setting to NULL cell type.

void DeleteCell (int )

Return the number of types in the list.

int GetNumberOfTypes ()

Return 1 if type specified is contained in list; 0 otherwise.

int IsType (unsigned char )

Add the type specified to the end of the list. Range checking is performed.

int InsertNextType (unsigned char )

Return a reference to a cell list structure.

unknown &GetCell (int )

Return the type of cell.

unsigned char GetCellType (int )

Reclaim any extra memory.

void Squeeze ()

Initialize object without releasing memory.

void Reset ()