40 #ifndef vtkCellArray_h
41 #define vtkCellArray_h
61 {
return this->Ia->Allocate(sz,ext);}
86 {
return numCells*(1+maxPtsPerCell);}
108 {
return this->Ia->GetSize();}
116 {
return this->Ia->GetMaxId()+1;}
150 void UpdateCellCount(
int npts);
156 {
return (this->InsertLocation - npts - 1);};
162 {
return this->TraversalLocation;}
164 {this->TraversalLocation = loc;}
171 {
return(this->TraversalLocation-npts-1);}
183 int GetMaxCellSize();
188 {
return this->Ia->GetPointer(0);}
220 {this->Ia->Squeeze();}
229 unsigned long GetActualMemorySize();
251 vtkIdType *ptr = this->
Ia->WritePointer(i, npts+1);
253 for ( *ptr++ = npts, i = 0; i < npts; i++)
327 npts = this->
Ia->GetValue(loc++);
328 pts = this->
Ia->GetPointer(loc);
338 for (i=0; i < (npts/2); i++)
341 pts[i] = pts[npts-i-1];
351 for (
int i=0; i < npts; i++)
364 return this->
Ia->WritePointer(0,size);
vtkIdType GetNumberOfPoints()
vtkIdType GetInsertLocation(int npts)
abstract base class for most VTK objects
void InsertCellPoint(vtkIdType id)
vtkIdType GetNumberOfIds()
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
void ReplaceCell(vtkIdType loc, int npts, const vtkIdType *pts)
dynamic, self-adjusting array of vtkIdType
abstract class to specify cell behavior
virtual void PrintSelf(ostream &os, vtkIndent indent)
void SetTraversalLocation(vtkIdType loc)
vtkIdType GetTraversalLocation(vtkIdType npts)
a simple class to control print indentation
vtkIdType GetNumberOfConnectivityEntries()
list of point or cell ids
vtkIdType EstimateSize(vtkIdType numCells, int maxPtsPerCell)
void ReverseCell(vtkIdType loc)
void UpdateCellCount(int npts)
vtkIdType TraversalLocation
vtkIdType InsertNextCell(vtkCell *cell)
vtkIdType * WritePointer(const vtkIdType ncells, const vtkIdType size)
object to represent cell connectivity
vtkIdTypeArray * GetData()
int GetNextCell(vtkIdType &npts, vtkIdType *&pts)
vtkIdType GetTraversalLocation()
#define VTKCOMMONDATAMODEL_EXPORT
vtkIdType * GetPointer(const vtkIdType i)
int Allocate(const vtkIdType sz, const int ext=1000)
void GetCell(vtkIdType loc, vtkIdType &npts, vtkIdType *&pts)