27 #ifndef vtkCellLinks_h 28 #define vtkCellLinks_h 49 void PrintSelf(ostream& os,
vtkIndent indent);
108 unsigned long GetActualMemorySize();
125 void InsertCellReference(
vtkIdType ptId,
unsigned short pos,
144 this->Array[ptId].cells[pos] = cellId;
150 this->Array[ptId].ncells = 0;
151 delete [] this->Array[ptId].cells;
152 this->Array[ptId].cells = NULL;
159 this->Array[ptId].cells[this->Array[ptId].ncells++] = cellId;
165 vtkIdType *cells=this->Array[ptId].cells;
166 int ncells=this->Array[ptId].ncells;
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];
176 this->Array[ptId].ncells--;
185 this->Array[ptId].cells[this->Array[ptId].ncells++] = cellId;
194 newSize = this->Array[ptId].ncells +
size;
196 memcpy(cells, this->Array[ptId].cells,
197 this->Array[ptId].ncells*
sizeof(
vtkIdType));
198 delete [] this->Array[ptId].cells;
199 this->Array[ptId].cells = cells;
void ResizeCellList(vtkIdType ptId, int size)
abstract base class for most VTK objects
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)
abstract class to specify dataset behavior
void InsertNextCellReference(vtkIdType ptId, vtkIdType cellId)
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
unsigned short GetNcells(vtkIdType ptId)
vtkIdType * GetCells(vtkIdType ptId)
#define vtkTypeMacro(thisClass, superclass)
void IncrementLinkCount(vtkIdType ptId)
a simple class to control print indentation
Link & GetLink(vtkIdType ptId)
object to represent cell connectivity
void DeletePoint(vtkIdType ptId)
#define VTKCOMMONDATAMODEL_EXPORT
void RemoveCellReference(vtkIdType cellId, vtkIdType ptId)