24#include "vtkObjectFactory.h"
32 if ( this->
Array != NULL )
36 delete [] this->
Array;
43 if ( this->
Array != NULL )
46 delete [] this->
Array;
55 for (vtkIdType i=0; i<sz; i++)
63 this->
Array[i]->Delete();
69 for (vtkIdType i=0; i<this->
Size; i++)
71 this->
Array[i]->UnRegister(
this);
97 if ( sz >= this->
Size )
99 newSize = this->
Size + sz;
108 for (i=0; i<sz && i<this->
Size; i++)
110 newArray[i] = this->
Array[i];
113 for (i=this->Size; i<newSize ; i++)
118 this->Size = newSize;
119 delete [] this->
Array;
120 this->
Array = newArray;
127 vtkIdType i, numItems;
132 for (i=0; i<numItems; i++)
142 if ( this->
Array != NULL )
145 delete [] this->
Array;
151 for (vtkIdType i=0; i<src->
Size; i++)
154 this->
Array[i]->Register(
this);
Serves as the base class for constructing neighborhoods and stencils from a set of points.
virtual void DeepCopy(vtkvmtkItem *src)
virtual vtkvmtkItem * InstantiateNewItem(int itemType)=0
void ShallowCopy(vtkvmtkItems *src)
void AllocateItem(vtkIdType i, vtkIdType itemType)
vtkvmtkItem * GetItem(vtkIdType id)
void Allocate(vtkIdType numItems, vtkIdType ext=1000)
vtkIdType GetNumberOfItems()
vtkvmtkItem ** Resize(vtkIdType sz)
void DeepCopy(vtkvmtkItems *src)