Go to the documentation of this file.
42 #ifndef vtkCellTypes_h
43 #define vtkCellTypes_h
45 #include "vtkCommonDataModelModule.h"
104 int IsType(
unsigned char type);
160 static int IsLinear(
unsigned char type);
196 return ( (
type <= 20)
vtkIdType InsertNextType(unsigned char type)
Add the type specified to the end of the list.
object provides direct access to cells in vtkCellArray and type information
void Reset()
Initialize object without releasing memory.
vtkIdTypeArray * LocationArray
void Squeeze()
Reclaim any extra memory.
static vtkCellTypes * New()
static const char * GetClassNameFromTypeId(int typeId)
Given an int (as defined in vtkCellType.h) identifier for a class return it's classname.
dynamic, self-adjusting array of unsigned char
void InsertCell(vtkIdType id, unsigned char type, vtkIdType loc)
Add a cell at specified id.
int IsType(unsigned char type)
Return 1 if type specified is contained in list; 0 otherwise.
abstract base class for most VTK objects
void DeepCopy(vtkCellTypes *src)
Standard DeepCopy method.
vtkUnsignedCharArray * TypeArray
vtkIdType GetNumberOfTypes()
Return the number of types in the list.
void SetCellTypes(vtkIdType ncells, vtkUnsignedCharArray *cellTypes, vtkIdTypeArray *cellLocations)
Specify a group of cell types.
unsigned char GetCellType(vtkIdType cellId)
Return the type of cell.
static int IsLinear(unsigned char type)
This convenience method is a fast check to determine if a cell type represents a linear or nonlinear ...
a simple class to control print indentation
vtkIdType GetCellLocation(vtkIdType cellId)
Return the location of the cell in the associated vtkCellArray.
dynamic, self-adjusting array of int
unsigned long GetActualMemorySize()
Return the memory in kibibytes (1024 bytes) consumed by this cell type array.
static int GetTypeIdFromClassName(const char *classname)
Given a data object classname, return it's int identified (as defined in vtkCellType....
void DeleteCell(vtkIdType cellId)
Delete cell by setting to nullptr cell type.
dynamic, self-adjusting array of vtkIdType
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIdType InsertNextCell(unsigned char type, vtkIdType loc)
Add a cell to the object in the next available slot.
void SetCellTypes(vtkIdType ncells, vtkUnsignedCharArray *cellTypes, vtkIntArray *cellLocations)
Specify a group of cell types.
int Allocate(int sz=512, int ext=1000)
Allocate memory for this array.