Go to the documentation of this file.
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);}
188 {
return this->Ia->GetPointer(0);}
220 {this->Ia->Squeeze();}
251 vtkIdType *ptr = this->
Ia->WritePointer(i, npts+1);
253 for ( *ptr++ = npts, i = 0; i < npts; i++)
311 this->TraversalLocation <= this->Ia->GetMaxId() )
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 GetNumberOfConnectivityEntries()
int Allocate(const vtkIdType sz, const int ext=1000)
void UpdateCellCount(int npts)
vtkIdType TraversalLocation
void ReverseCell(vtkIdType loc)
vtkIdType * WritePointer(const vtkIdType ncells, const vtkIdType size)
#define vtkTypeMacro(thisClass, superclass)
abstract base class for most VTK objects
void SetCells(vtkIdType ncells, vtkIdTypeArray *cells)
vtkIdTypeArray * GetData()
void PrintSelf(ostream &os, vtkIndent indent)
int GetNextCell(vtkIdType &npts, vtkIdType *&pts)
vtkIdType GetTraversalLocation(vtkIdType npts)
void GetCell(vtkIdType loc, vtkIdType &npts, vtkIdType *&pts)
void GetCell(vtkIdType loc, vtkIdList *pts)
vtkIdType EstimateSize(vtkIdType numCells, int maxPtsPerCell)
abstract class to specify cell behavior
a simple class to control print indentation
object to represent cell connectivity
int GetNextCell(vtkIdList *pts)
void InsertCellPoint(vtkIdType id)
list of point or cell ids
#define vtkGetMacro(name, type)
unsigned long GetActualMemorySize()
vtkIdType GetNumberOfPoints()
vtkSetMacro(IgnoreDriverBugs, bool)
dynamic, self-adjusting array of vtkIdType
static vtkCellArray * New()
void ReplaceCell(vtkIdType loc, int npts, const vtkIdType *pts)
vtkIdType InsertNextCell(vtkCell *cell)
vtkIdType * GetPointer(const vtkIdType i)
void DeepCopy(vtkCellArray *ca)
#define VTKCOMMONDATAMODEL_EXPORT
vtkIdType GetNumberOfIds()
void SetTraversalLocation(vtkIdType loc)
vtkIdType GetInsertLocation(int npts)
vtkIdType GetTraversalLocation()