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

vtkPolyDataCollection.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkPolyDataCollection.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 =========================================================================*/
00025 #ifndef __vtkPolyDataCollection_h
00026 #define __vtkPolyDataCollection_h
00027 
00028 #include "vtkCollection.h"
00029 
00030 #include "vtkPolyData.h" // Needed for static cast
00031 
00032 class VTK_FILTERING_EXPORT vtkPolyDataCollection : public vtkCollection
00033 {
00034 public:
00035   static vtkPolyDataCollection *New();
00036   vtkTypeRevisionMacro(vtkPolyDataCollection,vtkCollection);
00037   void PrintSelf(ostream& os, vtkIndent indent);
00038 
00040 
00041   void AddItem(vtkPolyData *pd) {
00042     this->vtkCollection::AddItem((vtkObject *)pd);};
00044 
00046 
00047   vtkPolyData *GetNextItem() { 
00048     return static_cast<vtkPolyData *>(this->GetNextItemAsObject());};
00050 
00051   //BTX
00053 
00055   vtkPolyData *GetNextPolyData(vtkCollectionSimpleIterator &cookie) {
00056     return static_cast<vtkPolyData *>(this->GetNextItemAsObject(cookie));};
00057   //ETX
00059 
00060 protected:  
00061   vtkPolyDataCollection() {};
00062   ~vtkPolyDataCollection() {};
00063 
00064 private:
00065   // hide the standard AddItem from the user and the compiler.
00066   void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
00067 
00068 private:
00069   vtkPolyDataCollection(const vtkPolyDataCollection&);  // Not implemented.
00070   void operator=(const vtkPolyDataCollection&);  // Not implemented.
00071 };
00072 
00073 
00074 #endif

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