41 #ifndef __vtkCellTypes_h
42 #define __vtkCellTypes_h
58 int Allocate(
int sz=512,
int ext=1000);
61 void InsertCell(
int id,
unsigned char type,
int loc);
64 int InsertNextCell(
unsigned char type,
int loc);
79 int IsType(
unsigned char type);
83 int InsertNextType(
unsigned char type){
return this->InsertNextCell(type,-1);};
86 unsigned char GetCellType(
int cellId) {
return this->TypeArray->GetValue(cellId);};
100 unsigned long GetActualMemorySize();
108 static const char* GetClassNameFromTypeId(
int typeId);
112 static int GetTypeIdFromClassName(
const char* classname);
118 static int IsLinear(
unsigned char type);
140 for (
int i=0; i<numTypes; i++)
153 return ( (type <= 20)
abstract base class for most VTK objects
void DeleteCell(vtkIdType cellId)
int IsType(unsigned char type)
int GetCellLocation(int cellId)
int InsertNextType(unsigned char type)
vtkUnsignedCharArray * TypeArray
vtkIntArray * LocationArray
dynamic, self-adjusting array of int
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
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