NAME
vtkCellLinks - object represents upward pointers from points to list of cells using each point
SYNOPSIS
#include "/opt/vtk-c++/common/vtkCellLinks.h"
class VTK_EXPORT vtkCellLinks : public vtkReferenceCount
vtkCellLinks():Array(NULL),Size(0),MaxId(-1),Extend(1000) {};
vtkCellLinks(int sz, int ext=1000);
~vtkCellLinks();
static vtkCellLinks *New() {return new vtkCellLinks;};
const char *GetClassName() {return "vtkCellLinks";};
_vtkLink_s &GetLink(int ptId);
unsigned short GetNcells(int ptId);
void BuildLinks(vtkDataSet *data);
int *GetCells(int ptId);
int InsertNextPoint(int numLinks);
void InsertNextCellReference(int ptId, int cellId);
void DeletePoint(int ptId);
void RemoveCellReference(int cellId, int ptId);
void AddCellReference(int cellId, int ptId);
void ResizeCellList(int ptId, int size);
void Squeeze();
void Reset();
DESCRIPTION
vtkCellLinks is a supplemental object to vtkCellArray and vtkCellTypes, enabling access from points to the cells using the points. vtkCellLinks is a list of Links, each link represents a dynamic list of cell id's using the point. The information provided by this object can be used to determine neighbors and construct other local topological information.
SEE ALSO
vtkCellArray vtkCellTypes
SUMMARY
_vtkLink_s &GetLink(int ptId)
Get a link structure given a point id.
unsigned short GetNcells(int ptId)
Get the number of cells using the point specified by ptId.
int *GetCells(int ptId)
Return a list of cell ids using the point.
void IncrementLinkCount(int ptId)
Increment the count of the number of cells using the point.
void InsertCellReference(int ptId, unsigned short pos, int cellId)
Insert a cell id into the list of cells using the point.
void DeletePoint(int ptId)
Delete point (and storage) by destroying links to using cells.
void InsertNextCellReference(int ptId, int cellId)
Insert a cell id into the list of cells (at the end) using the cell id provided. (Make sure to extend the link list (if necessary) using the method ResizeCellList().)
void RemoveCellReference(int cellId, int ptId)
Delete the reference to the cell (cellId) from the point (ptId). This removes the reference to the cellId from the cell list, but does not resize the list (recover memory with ResizeCellList(), if necessary).
void AddCellReference(int cellId, int ptId)
Add the reference to the cell (cellId) from the point (ptId). This adds a reference to the cellId from the cell list, but does not resize the list (extend memory with ResizeCellList(), if necessary).
void ResizeCellList(int 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 AllocateLinks(int n)
Allocate memory for the list of lists of cell ids.
void Squeeze()
Reclaim any unused memory.
void BuildLinks(vtkDataSet *data)
Build the link list array.
int InsertNextPoint(int numLinks)
Insert a new point into the cell-links data structure. The size parameter is the initial size of the list.