40 #ifndef __vtkCellArray_h
41 #define __vtkCellArray_h
43 #include "vtkCommonDataModelModule.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();
253 for ( *ptr++ = npts, i = 0; i < npts; i++)
338 for (i=0; i < (npts/2); i++)
341 pts[i] = pts[npts-i-1];
351 for (
int i=0; i < npts; i++)
vtkIdType GetNumberOfPoints()
vtkIdType GetInsertLocation(int npts)
abstract base class for most VTK objects
void InsertCellPoint(vtkIdType id)
vtkIdType InsertNextValue(vtkIdType f)
vtkIdType GetNumberOfIds()
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
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)
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
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)