Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

vtkIdListCollection.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkIdListCollection.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00022 #ifndef __vtkIdListCollection_h
00023 #define __vtkIdListCollection_h
00024 
00025 #include "vtkCollection.h"
00026 
00027 #include "vtkIdList.h" // Needed for inline methods
00028 
00029 class VTK_COMMON_EXPORT vtkIdListCollection : public vtkCollection
00030 {
00031 public:
00032   static vtkIdListCollection *New();
00033   vtkTypeRevisionMacro(vtkIdListCollection,vtkCollection);
00034 
00036 
00037   void AddItem(vtkIdList *ds) {
00038     this->vtkCollection::AddItem((vtkObject *)ds);};
00040   
00042 
00043   vtkIdList *GetNextItem() { 
00044     return static_cast<vtkIdList *>(this->GetNextItemAsObject());};
00046 
00048 
00049   vtkIdList *GetItem(int i) { 
00050     return static_cast<vtkIdList *>(this->GetItemAsObject(i));};
00052 
00053   //BTX
00055 
00057   vtkIdList *GetNextIdList(vtkCollectionSimpleIterator &cookie) {
00058     return static_cast<vtkIdList *>(this->GetNextItemAsObject(cookie));};
00059   //ETX
00061   
00062 protected:
00063   vtkIdListCollection() {};
00064   ~vtkIdListCollection() {};
00065 
00066 
00067 private:
00068   // hide the standard AddItem from the user and the compiler.
00069   void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
00070 
00071 private:
00072   vtkIdListCollection(const vtkIdListCollection&);  // Not implemented.
00073   void operator=(const vtkIdListCollection&);  // Not implemented.
00074 };
00075 
00076 
00077 #endif

Generated on Mon Jan 21 23:07:17 2008 for VTK by  doxygen 1.4.3-20050530