36 #ifndef vtkCellLinks_h 37 #define vtkCellLinks_h 40 #include "vtkCommonDataModelModule.h" 61 void PrintSelf(ostream& os,
vtkIndent indent)
override;
79 void Initialize()
override;
137 void Squeeze()
override;
142 void Reset()
override;
152 unsigned long GetActualMemorySize()
override;
196 this->Array[ptId].cells[pos] = cellId;
202 this->Array[ptId].ncells = 0;
203 delete[] this->Array[ptId].cells;
204 this->Array[ptId].cells =
nullptr;
210 this->Array[ptId].cells[this->Array[ptId].ncells++] = cellId;
216 vtkIdType* cells = this->Array[ptId].cells;
217 vtkIdType ncells = this->Array[ptId].ncells;
221 if (cells[i] == cellId)
223 for (
vtkIdType j = i; j < (ncells - 1); j++)
225 cells[j] = cells[j + 1];
227 this->Array[ptId].ncells--;
236 this->Array[ptId].cells[this->Array[ptId].ncells++] = cellId;
244 memcpy(cells, this->Array[ptId].cells,
245 static_cast<size_t>(this->Array[ptId].ncells) *
sizeof(
vtkIdType));
246 delete[] this->Array[ptId].cells;
247 this->Array[ptId].cells = cells;
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
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 ...
vtkIdType * GetCells(vtkIdType ptId)
Return a list of cell ids using the point.
void IncrementLinkCount(vtkIdType ptId)
Increment the count of the number of cells using the point.
a simple class to control print indentation
Link & GetLink(vtkIdType ptId)
Get a link structure given a point id.
object to represent cell connectivity
void DeletePoint(vtkIdType ptId)
Delete point (and storage) by destroying links to using cells.
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).