Go to the documentation of this file.
35 #ifndef vtkCellLinks_h
36 #define vtkCellLinks_h
38 #include "vtkCommonDataModelModule.h"
171 void IncrementLinkCount(
vtkIdType ptId) { this->Array[ptId].ncells++;};
178 void InsertCellReference(
vtkIdType ptId,
unsigned short pos,
189 void operator=(
const vtkCellLinks&) VTK_DELETE_FUNCTION;
221 for (
int i=0; i < ncells; i++)
223 if (cells[i] == cellId)
225 for (
int j=i; j < (ncells-1); j++)
227 cells[j] = cells[j+1];
249 memcpy(cells, this->
Array[ptId].cells,
void AllocateLinks(vtkIdType n)
Link & GetLink(vtkIdType ptId)
Get a link structure given a point id.
unsigned long GetActualMemorySize()
Return the memory in kibibytes (1024 bytes) consumed by this cell links array.
unsigned short GetNcells(vtkIdType ptId)
Get the number of cells using the point specified by ptId.
void BuildLinks(vtkDataSet *data) override
Build the link list array.
static vtkCellLinks * New()
Standard methods to instantiate, print, and obtain type information.
vtkIdType InsertNextPoint(int numLinks)
Insert a new point into the cell-links data structure.
vtkIdType * GetCells(vtkIdType ptId)
Return a list of cell ids using the point.
void DeletePoint(vtkIdType ptId)
Delete point (and storage) by destroying links to using cells.
void BuildLinks(vtkDataSet *data, vtkCellArray *Connectivity)
Build the link list array with a provided connectivity array.
an abstract base class for classes that build topological links from points to cells
Link * Resize(vtkIdType sz)
void RemoveCellReference(vtkIdType cellId, vtkIdType ptId)
Delete the reference to the cell (cellId) from the point (ptId).
a simple class to control print indentation
object represents upward pointers from points to list of cells using each point
object to represent cell connectivity
void Allocate(vtkIdType numLinks, vtkIdType ext=1000)
Allocate the specified number of links (i.e., number of points) that will be built.
void InsertCellReference(vtkIdType ptId, unsigned short pos, vtkIdType cellId)
Insert a cell id into the list of cells using the point.
void InsertNextCellReference(vtkIdType ptId, vtkIdType cellId)
Insert a cell id into the list of cells (at the end) using the cell id provided.
void Squeeze()
Reclaim any unused memory.
abstract class to specify dataset behavior
void Initialize()
Clear out any previously allocated data structures.
void DeepCopy(vtkCellLinks *src)
Standard DeepCopy method.
void Reset()
Reset to a state of no entries without freeing the memory.
void AddCellReference(vtkIdType cellId, vtkIdType ptId)
Add the reference to the cell (cellId) from the point (ptId).
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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.