44 int Allocate(
const vtkIdType sz,
const int strategy=0);
57 void SetNumberOfIds(
const vtkIdType number);
85 void Reset() {this->NumberOfIds = 0;};
88 void Squeeze() {this->Resize(this->NumberOfIds);};
112 this->IntersectWith(&otherIds); };
135 this->Ids[i] = vtkid;
136 if (i >= this->NumberOfIds)
138 this->NumberOfIds = i + 1;
145 if ( this->NumberOfIds >= this->Size )
147 if (!this->Resize(this->NumberOfIds+1))
149 return this->NumberOfIds-1;
152 this->Ids[this->NumberOfIds++] = vtkid;
153 return this->NumberOfIds-1;
159 for (ptr=this->Ids, i=0; i<this->NumberOfIds; i++, ptr++)
void InsertId(const vtkIdType i, const vtkIdType vtkid)
abstract base class for most VTK objects
void SetId(const vtkIdType i, const vtkIdType vtkid)
#define VTKCOMMONCORE_EXPORT
vtkIdType GetNumberOfIds()
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
#define vtkTypeMacro(thisClass, superclass)
void IntersectWith(vtkIdList &otherIds)
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
list of point or cell ids
vtkIdType IsId(vtkIdType vtkid)
vtkIdType GetId(const vtkIdType i)
vtkIdType InsertNextId(const vtkIdType vtkid)
vtkIdType * GetPointer(const vtkIdType i)