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

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     this->vtkCollection::AddItem((vtkObject *)ds);};
00040   
00042 
00043   vtkDataObject *GetNextItem() { 
00044     return static_cast<vtkDataObject *>(this->GetNextItemAsObject());};
00046 
00048 
00049   vtkDataObject *GetItem(int i) { 
00050     return static_cast<vtkDataObject *>(this->GetItemAsObject(i));};
00052   
00053   //BTX
00055 
00057   vtkDataObject *GetNextDataObject(vtkCollectionSimpleIterator &cookie) {
00058     return static_cast<vtkDataObject *>(this->GetNextItemAsObject(cookie));};
00059   //ETX
00061 
00062 protected:
00063   vtkDataObjectCollection() {};
00064   ~vtkDataObjectCollection() {};
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   vtkDataObjectCollection(const vtkDataObjectCollection&);  // Not implemented.
00073   void operator=(const vtkDataObjectCollection&);  // Not implemented.
00074 };
00075 
00076 
00077 #endif

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