Go to the documentation of this file.
42 #ifndef vtkCellTypes_h
43 #define vtkCellTypes_h
45 #include "vtkCommonDataModelModule.h"
62 int Allocate(
int sz=512,
int ext=1000);
67 void InsertCell(
int id,
unsigned char type,
int loc);
97 int IsType(
unsigned char type);
107 unsigned char GetCellType(
int cellId) {
return this->TypeArray->GetValue(cellId);};
127 unsigned long GetActualMemorySize();
139 static const char* GetClassNameFromTypeId(
int typeId);
145 static int GetTypeIdFromClassName(
const char* classname);
153 static int IsLinear(
unsigned char type);
167 void operator=(const
vtkCellTypes&) VTK_DELETE_FUNCTION;
174 vtkIdType numTypes=this->GetNumberOfTypes();
178 if (
type == this->GetCellType(i))
189 return ( (
type <= 20)
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
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
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
dynamic, self-adjusting array of unsigned char
abstract base class for most VTK objects
unsigned char GetCellType(int cellId)
Return the type of cell.
vtkIdType GetNumberOfTypes()
Return the number of types in the list.
vtkIdType GetCellLocation(int cellId)
Return the location of the cell in the associated vtkCellArray.
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
dynamic, self-adjusting array of int
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.