42 #ifndef vtkCellTypes_h
43 #define vtkCellTypes_h
45 #include "vtkCommonDataModelModule.h"
97 int IsType(
unsigned char type);
107 unsigned char GetCellType(
int cellId) {
return this->TypeArray->GetValue(cellId);};
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)
object provides direct access to cells in vtkCellArray and type information
static const char * GetClassNameFromTypeId(int typeId)
Given an int (as defined in vtkCellType.h) identifier for a class return it's classname.
void SetCellTypes(int ncells, vtkUnsignedCharArray *cellTypes, vtkIntArray *cellLocations)
Specify a group of cell types.
void Squeeze()
Reclaim any extra memory.
void Reset()
Initialize object without releasing memory.
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 ...
vtkIdType GetCellLocation(int cellId)
Return the location of the cell in the associated vtkCellArray.
unsigned long GetActualMemorySize()
Return the memory in kibibytes (1024 bytes) consumed by this cell type array.
static vtkCellTypes * New()
vtkIdType GetNumberOfTypes()
Return the number of types in the list.
void DeleteCell(vtkIdType cellId)
Delete cell by setting to NULL cell type.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int Allocate(int sz=512, int ext=1000)
Allocate memory for this array.
void InsertCell(int id, unsigned char type, int loc)
Add a cell at specified id.
vtkIdType InsertNextCell(unsigned char type, int loc)
Add a cell to the object in the next available slot.
unsigned char GetCellType(int cellId)
Return the type of cell.
void DeepCopy(vtkCellTypes *src)
Standard DeepCopy method.
static int GetTypeIdFromClassName(const char *classname)
Given a data object classname, return it's int identified (as defined in vtkCellType....
a simple class to control print indentation
dynamic, self-adjusting array of int
abstract base class for most VTK objects
dynamic, self-adjusting array of unsigned char