27 #ifndef __vtkCellLinks_h
28 #define __vtkCellLinks_h
30 #include "vtkCommonDataModelModule.h"
31 #include "vtkObject.h"
49 void PrintSelf(ostream& os, vtkIndent indent);
53 void Allocate(vtkIdType numLinks, vtkIdType ext=1000);
59 unsigned short GetNcells(vtkIdType ptId) {
return this->Array[ptId].ncells;};
62 void BuildLinks(vtkDataSet *data);
65 void BuildLinks(vtkDataSet *data,
vtkCellArray *Connectivity);
68 vtkIdType *
GetCells(vtkIdType ptId) {
return this->Array[ptId].cells;};
72 vtkIdType InsertNextPoint(
int numLinks);
77 void InsertNextCellReference(vtkIdType ptId, vtkIdType cellId);
80 void DeletePoint(vtkIdType ptId);
85 void RemoveCellReference(vtkIdType cellId, vtkIdType ptId);
90 void AddCellReference(vtkIdType cellId, vtkIdType ptId);
94 void ResizeCellList(vtkIdType ptId,
int size);
108 unsigned long GetActualMemorySize();
121 void AllocateLinks(vtkIdType n);
125 void InsertCellReference(vtkIdType ptId,
unsigned short pos,
133 Link *Resize(vtkIdType sz);
168 for (
int i=0; i < ncells; i++)
170 if (cells[i] == cellId)
172 for (
int j=i; j < (ncells-1); j++)
174 cells[j] = cells[j+1];
195 cells =
new vtkIdType[newSize];
196 memcpy(cells, this->
Array[ptId].cells,
197 this->
Array[ptId].ncells*
sizeof(vtkIdType));
void ResizeCellList(vtkIdType ptId, int size)
void AddCellReference(vtkIdType cellId, vtkIdType ptId)
object represents upward pointers from points to list of cells using each point
void InsertCellReference(vtkIdType ptId, unsigned short pos, vtkIdType cellId)
void InsertNextCellReference(vtkIdType ptId, vtkIdType cellId)
unsigned short GetNcells(vtkIdType ptId)
vtkIdType * GetCells(vtkIdType ptId)
void IncrementLinkCount(vtkIdType ptId)
Link & GetLink(vtkIdType ptId)
object to represent cell connectivity
void DeletePoint(vtkIdType ptId)
void RemoveCellReference(vtkIdType cellId, vtkIdType ptId)