Skip to content

CellTypes ​

Introduction ​

vtkCellTypes provides a mapping from cell ids to cell types and to the location of the cell definition in the associated vtkCellArray.

Methods ​

allocate ​

Allocate memory for this array. Delete old storage only if necessary.

ArgumentTypeRequiredDescription
szNumberNo(default: 512)
extNumberNo(default: 1000)

deepCopy ​

Standard DeepCopy method. Since this object contains no reference to other objects, there is no ShallowCopy.

ArgumentTypeRequiredDescription
srcvtkCellTypesYes

deleteCell ​

Delete cell by setting it to the empty cell type.

ArgumentTypeRequiredDescription
cellIdNumberYes

extend ​

Method used to decorate a given object (publicAPI+model) with vtkCellTypes characteristics.

ArgumentTypeRequiredDescription
publicAPIYesobject on which methods will be bounds (public)
modelYesobject on which data structure will be bounds (protected)
initialValuesICellTypesInitialValuesNo(default: {})

getCellLocation ​

Return the location of the cell in the associated vtkCellArray.

ArgumentTypeRequiredDescription
cellIdNumberYes

getCellType ​

Return the type of cell.

ArgumentTypeRequiredDescription
cellIdNumberYes

getExtend ​

Get the growth increment of the arrays.

getLocationArray ​

Get the array of cell locations.

getLocationArrayByReference ​

Get the array of cell locations without copying it.

getMaxId ​

Get the maximum index inserted so far.

getNumberOfTypes ​

Return the number of types in the list.

getSize ​

Get the allocated size of the data.

getTypeArray ​

Get the array of cell types.

getTypeArrayByReference ​

Get the array of cell types without copying it.

insertCell ​

Add a cell at the specified id.

ArgumentTypeRequiredDescription
cellIdNumberYes
typeNumberYes
locNumberYes

insertNextCell ​

Add a cell to the object in the next available slot. Returns the id of the inserted cell.

ArgumentTypeRequiredDescription
typeNumberYes
locNumberYes

insertNextType ​

Add the type specified to the end of the list, with a location of -1. Returns the id of the inserted cell.

ArgumentTypeRequiredDescription
typeNumberYes

isType ​

Return true if the type specified is contained in the list.

ArgumentTypeRequiredDescription
typeNumberYes

newInstance ​

Method used to create a new instance of vtkCellTypes.

ArgumentTypeRequiredDescription
initialValuesICellTypesInitialValuesNofor pre-setting some of its content

reset ​

Initialize the object without releasing memory.

setCellTypes ​

Specify a group of cell types.

ArgumentTypeRequiredDescription
ncellsNumberYes
cellTypesUint8ArrayYes
cellLocationsUint32ArrayYes