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

vtkDataSetCollection.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkDataSetCollection.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 =========================================================================*/
00032 #ifndef __vtkDataSetCollection_h
00033 #define __vtkDataSetCollection_h
00034 
00035 #include "vtkCollection.h"
00036 
00037 #include "vtkDataSet.h" // Needed for inline methods.
00038 
00039 class VTK_FILTERING_EXPORT vtkDataSetCollection : public vtkCollection
00040 {
00041 public:
00042   static vtkDataSetCollection *New();
00043   vtkTypeRevisionMacro(vtkDataSetCollection,vtkCollection);
00044 
00046 
00047   void AddItem(vtkDataSet *ds) {
00048     this->vtkCollection::AddItem((vtkObject *)ds);};
00050   
00052 
00053   vtkDataSet *GetNextItem() { 
00054     return static_cast<vtkDataSet *>(this->GetNextItemAsObject());};
00055   vtkDataSet *GetNextDataSet() { 
00056     return static_cast<vtkDataSet *>(this->GetNextItemAsObject());};
00058 
00060 
00061   vtkDataSet *GetItem(int i) { 
00062     return static_cast<vtkDataSet *>(this->GetItemAsObject(i));};
00063   vtkDataSet *GetDataSet(int i) { 
00064     return static_cast<vtkDataSet *>(this->GetItemAsObject(i));};
00066   
00067   //BTX
00069 
00071   vtkDataSet *GetNextDataSet(vtkCollectionSimpleIterator &cookie) {
00072     return static_cast<vtkDataSet *>(this->GetNextItemAsObject(cookie));};
00073   //ETX
00075 
00076 protected:
00077   vtkDataSetCollection() {};
00078   ~vtkDataSetCollection() {};
00079 
00080 private:
00081   // hide the standard AddItem from the user and the compiler.
00082   void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
00083 
00084 private:
00085   vtkDataSetCollection(const vtkDataSetCollection&);  // Not implemented.
00086   void operator=(const vtkDataSetCollection&);  // Not implemented.
00087 };
00088 
00089 
00090 #endif