41 #ifndef vtkCellTypes_h
42 #define vtkCellTypes_h
59 int Allocate(
int sz=512,
int ext=1000);
62 void InsertCell(
int id,
unsigned char type,
int loc);
80 int IsType(
unsigned char type);
87 unsigned char GetCellType(
int cellId) {
return this->TypeArray->GetValue(cellId);};
101 unsigned long GetActualMemorySize();
109 static const char* GetClassNameFromTypeId(
int typeId);
113 static int GetTypeIdFromClassName(
const char* classname);
119 static int IsLinear(
unsigned char type);
155 return ( (type <= 20)
abstract base class for most VTK objects
void DeleteCell(vtkIdType cellId)
int IsType(unsigned char type)
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
vtkUnsignedCharArray * TypeArray
vtkIdType GetCellLocation(int cellId)
vtkIntArray * LocationArray
dynamic, self-adjusting array of int
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
vtkIdType InsertNextType(unsigned char type)
static int IsLinear(unsigned char type)
dynamic, self-adjusting array of unsigned char
unsigned char GetCellType(int cellId)
object provides direct access to cells in vtkCellArray and type information
vtkIdType GetNumberOfTypes()
#define VTKCOMMONDATAMODEL_EXPORT