24 #ifndef vtkCellLinks_h
25 #define vtkCellLinks_h
28 #include "vtkCommonDataModelModule.h"
30 VTK_ABI_NAMESPACE_BEGIN
141 void Reset()
override;
218 if (cells[i] == cellId)
220 for (
vtkIdType j = i; j < (ncells - 1); j++)
222 cells[j] = cells[j + 1];
241 memcpy(cells, this->
Array[ptId].cells,
242 static_cast<size_t>(this->
Array[ptId].ncells) *
sizeof(
vtkIdType));
247 VTK_ABI_NAMESPACE_END
void ResizeCellList(vtkIdType ptId, int size)
Change the length of a point's link list (i.e., list of cells using a point) by the size specified...
void AddCellReference(vtkIdType cellId, vtkIdType ptId)
Add the reference to the cell (cellId) from the point (ptId).
object represents upward pointers from points to list of cells using each point
virtual void Initialize()=0
Release memory and revert to empty state.
virtual void Reset()=0
Reset to a state of no entries without freeing the memory.
void InsertCellReference(vtkIdType ptId, vtkIdType pos, vtkIdType cellId)
Insert a cell id into the list of cells using the point.
abstract class to specify dataset behavior
void InsertNextCellReference(vtkIdType ptId, vtkIdType cellId)
Insert a cell id into the list of cells (at the end) using the cell id provided.
an abstract base class for classes that build topological links from points to cells ...
virtual void BuildLinks()=0
Build the link list array from the input dataset.
vtkIdType * GetCells(vtkIdType ptId)
Return a list of cell ids using the point.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard type and print methods.
void IncrementLinkCount(vtkIdType ptId)
Increment the count of the number of cells using the point.
virtual void DeepCopy(vtkAbstractCellLinks *src)=0
Standard DeepCopy method.
a simple class to control print indentation
Link & GetLink(vtkIdType ptId)
Get a link structure given a point id.
virtual unsigned long GetActualMemorySize()=0
Return the memory in kibibytes (1024 bytes) consumed by this cell links array.
object to represent cell connectivity
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
virtual void SelectCells(vtkIdType minMaxDegree[2], unsigned char *cellSelection)=0
These methods are not virtual due to performance concerns.
void DeletePoint(vtkIdType ptId)
Delete point (and storage) by destroying links to using cells.
virtual void Squeeze()=0
Reclaim any unused memory.
vtkIdType GetNcells(vtkIdType ptId)
Get the number of cells using the point specified by ptId.
void RemoveCellReference(vtkIdType cellId, vtkIdType ptId)
Delete the reference to the cell (cellId) from the point (ptId).