40 #ifndef __vtkCellArray_h
41 #define __vtkCellArray_h
60 {
return this->Ia->Allocate(sz,ext);}
85 {
return numCells*(1+maxPtsPerCell);}
106 {
return this->Ia->GetSize();}
114 {
return this->Ia->GetMaxId()+1;}
148 void UpdateCellCount(
int npts);
154 {
return (this->InsertLocation - npts - 1);};
160 {
return this->TraversalLocation;}
162 {this->TraversalLocation = loc;}
169 {
return(this->TraversalLocation-npts-1);}
181 int GetMaxCellSize();
186 {
return this->Ia->GetPointer(0);}
218 {this->Ia->Squeeze();}
227 unsigned long GetActualMemorySize();
251 for ( *ptr++ = npts, i = 0; i < npts; i++)
293 cell->PointIds->GetPointer(0));
336 for (i=0; i < (npts/2); i++)
339 pts[i] = pts[npts-i-1];
349 for (
int i=0; i < npts; i++)
vtkIdType GetInsertLocation(int npts)
abstract base class for most VTK objects
void InsertCellPoint(vtkIdType id)
vtkIdType InsertNextValue(vtkIdType f)
vtkIdType GetNumberOfIds()
vtkIdType GetValue(vtkIdType id)
void ReplaceCell(vtkIdType loc, int npts, const vtkIdType *pts)
dynamic, self-adjusting array of vtkIdType
void InsertValue(vtkIdType id, vtkIdType f)
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
void SetValue(vtkIdType id, vtkIdType value)
vtkIdType * GetPointer(vtkIdType id)
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
vtkIdType * WritePointer(vtkIdType id, vtkIdType number)
vtkIdTypeArray * GetData()
int GetNextCell(vtkIdType &npts, vtkIdType *&pts)
vtkIdType GetTraversalLocation()
vtkIdType * GetPointer(const vtkIdType i)
int Allocate(const vtkIdType sz, const int ext=1000)
void GetCell(vtkIdType loc, vtkIdType &npts, vtkIdType *&pts)