• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

dox/Filtering/vtkDataObjectCollection.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkDataObjectCollection.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 __vtkDataObjectCollection_h
00023 #define __vtkDataObjectCollection_h
00024 
00025 #include "vtkCollection.h"
00026 
00027 #include "vtkDataObject.h" // Needed for inline methods
00028 
00029 class VTK_FILTERING_EXPORT vtkDataObjectCollection : public vtkCollection
00030 {
00031 public:
00032   static vtkDataObjectCollection *New();
00033   vtkTypeRevisionMacro(vtkDataObjectCollection,vtkCollection);
00034 
00036 
00037   void AddItem(vtkDataObject *ds)
00038     {
00039       this->vtkCollection::AddItem(ds);
00040     }
00042   
00044 
00045   vtkDataObject *GetNextItem()
00046     {
00047       return static_cast<vtkDataObject *>(this->GetNextItemAsObject());
00048     }
00050 
00052 
00053   vtkDataObject *GetItem(int i)
00054     { 
00055       return static_cast<vtkDataObject *>(this->GetItemAsObject(i));
00056     }
00058   
00059   //BTX
00061 
00063   vtkDataObject *GetNextDataObject(vtkCollectionSimpleIterator &cookie)
00064     {
00065       return static_cast<vtkDataObject *>(this->GetNextItemAsObject(cookie));
00066     }
00067   //ETX
00069 
00070 protected:
00071   vtkDataObjectCollection() {};
00072   ~vtkDataObjectCollection() {};
00073 
00074 
00075 private:
00076   // hide the standard AddItem from the user and the compiler.
00077   void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
00078 
00079 private:
00080   vtkDataObjectCollection(const vtkDataObjectCollection&);  // Not implemented.
00081   void operator=(const vtkDataObjectCollection&);  // Not implemented.
00082 };
00083 
00084 
00085 #endif

Generated by  doxygen 1.7.1