116#ifndef vtkCellTypes_h
117#define vtkCellTypes_h
119#include "vtkCommonDataModelModule.h"
128VTK_ABI_NAMESPACE_BEGIN
171 int IsType(
unsigned char type);
int Allocate(vtkIdType sz=512, vtkIdType ext=1000)
Allocate memory for this array.
void SetCellTypes(vtkIdType ncells, vtkUnsignedCharArray *cellTypes)
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.
~vtkCellTypes() override=default
static vtkCellTypes * New()
unsigned long GetActualMemorySize()
Return the memory in kibibytes (1024 bytes) consumed by this cell type array.
vtkIdType GetNumberOfTypes()
Return the number of types in the list.
vtkSmartPointer< vtkUnsignedCharArray > TypeArray
void DeleteCell(vtkIdType cellId)
Delete cell by setting to nullptr cell type.
vtkIdType InsertNextCell(unsigned char type)
Add a cell to the object in the next available slot.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void InsertCell(vtkIdType id, unsigned char type)
Add a cell at specified id.
int IsType(unsigned char type)
Return 1 if type specified is contained in list; 0 otherwise.
unsigned char GetCellType(vtkIdType cellId)
Return the type of cell.
void DeepCopy(vtkCellTypes *src)
Standard DeepCopy method.
vtkUnsignedCharArray * GetCellTypesArray()
Methods for obtaining the arrays representing types and locations.
a simple class to control print indentation
dynamic, self-adjusting array of int
Hold a reference to a vtkObjectBase instance.
dynamic, self-adjusting array of unsigned char