#ifndef __vtkEsquiCaraCollection_h #define __vtkEsquiCaraCollection_h #include "vtkEsquiCollection.h" #include "vtkesquiT2MeshWin32Header.h" class vtkCara; //! A list of vtkCaras /*! vtkEsquiCaraCollection represents and provides methods to manipulate a list of Caras (i.e., vtkCaras and subclasses). The list is unsorted and duplicate entries are not prevented. \sa vtkCollection, vtkCara */ class VTK_ESQUI_TMESH_EXPORT vtkEsquiCaraCollection: public vtkEsquiCollection { public: static vtkEsquiCaraCollection *New(); vtkTypeRevisionMacro(vtkEsquiCaraCollection,vtkEsquiCollection); virtual void PrintSelf(ostream& os, vtkIndent indent); // Description: //! Add a Cara to the list. vtkIdType Append(vtkCara *object); //! Returns the Cara on i position. vtkCara *Item(vtkIdType i); //! Returns the first Cara. vtkCara *GetFirst(); //! Returns the position of cara. vtkIdType Find(vtkCara *object); //! Returns the position of cara. vtkIdType IndexOf(vtkCara *object); //! Returns the next item in the list vtkCara *GetNextItem(); //! Delete all the items in the list.(The items no longer exist) void DeleteAll(); //! Create a specified number of nodes in the list void CreateNodes(int numNodes); protected: vtkEsquiCaraCollection() {}; ~vtkEsquiCaraCollection() {}; private: vtkEsquiCaraCollection(const vtkEsquiCaraCollection&); // Not implemented. void operator=(const vtkEsquiCaraCollection&); // Not implemented. }; #endif