36 #ifndef vtkCellTypes_h 37 #define vtkCellTypes_h 39 #include "vtkCommonDataModelModule.h" 56 int Allocate(
int sz=512,
int ext=1000);
61 void InsertCell(
int id,
unsigned char type,
int loc);
91 int IsType(
unsigned char type);
101 unsigned char GetCellType(
int cellId) {
return this->TypeArray->GetValue(cellId);};
121 unsigned long GetActualMemorySize();
133 static const char* GetClassNameFromTypeId(
int typeId);
139 static int GetTypeIdFromClassName(
const char* classname);
147 static int IsLinear(
unsigned char type);
161 void operator=(
const vtkCellTypes&) VTK_DELETE_FUNCTION;
168 vtkIdType numTypes=this->GetNumberOfTypes();
172 if ( type == this->GetCellType(i))
183 return ( (type <= 20)
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void DeleteCell(vtkIdType cellId)
Delete cell by setting to NULL cell type.
int IsType(unsigned char type)
Return 1 if type specified is contained in list; 0 otherwise.
vtkUnsignedCharArray * TypeArray
vtkIdType GetCellLocation(int cellId)
Return the location of the cell in the associated vtkCellArray.
vtkIntArray * LocationArray
dynamic, self-adjusting array of int
a simple class to control print indentation
vtkIdType InsertNextType(unsigned char type)
Add the type specified to the end of the list.
static int IsLinear(unsigned char type)
This convenience method is a fast check to determine if a cell type represents a linear or nonlinear ...
dynamic, self-adjusting array of unsigned char
unsigned char GetCellType(int cellId)
Return the type of cell.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
object provides direct access to cells in vtkCellArray and type information
vtkIdType GetNumberOfTypes()
Return the number of types in the list.