41 #ifndef __vtkCellTypes_h
42 #define __vtkCellTypes_h
44 #include "vtkCommonDataModelModule.h"
49 #include "vtkCellType.h"
59 int Allocate(
int sz=512,
int ext=1000);
62 void InsertCell(
int id,
unsigned char type,
int loc);
65 int InsertNextCell(
unsigned char type,
int loc);
80 int IsType(
unsigned char type);
84 int InsertNextType(
unsigned char type){
return this->InsertNextCell(type,-1);};
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);
141 for (
int i=0; i<numTypes; i++)
154 return ( (type <= 20)
155 || (type == VTK_CONVEX_POINT_SET)
156 || (type == VTK_POLYHEDRON) );
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