00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkPolyDataCollection.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00029 #ifndef __vtkPolyDataCollection_h 00030 #define __vtkPolyDataCollection_h 00031 00032 #include "vtkCollection.h" 00033 00034 #include "vtkPolyData.h" // Needed for static cast 00035 00036 class VTK_FILTERING_EXPORT vtkPolyDataCollection : public vtkCollection 00037 { 00038 public: 00039 static vtkPolyDataCollection *New(); 00040 vtkTypeRevisionMacro(vtkPolyDataCollection,vtkCollection); 00041 void PrintSelf(ostream& os, vtkIndent indent); 00042 00044 00045 void AddItem(vtkPolyData *pd) { 00046 this->vtkCollection::AddItem((vtkObject *)pd);}; 00048 00050 00051 vtkPolyData *GetNextItem() { 00052 return static_cast<vtkPolyData *>(this->GetNextItemAsObject());}; 00054 protected: 00055 vtkPolyDataCollection() {}; 00056 ~vtkPolyDataCollection() {}; 00057 00058 private: 00059 // hide the standard AddItem from the user and the compiler. 00060 void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); }; 00061 00062 private: 00063 vtkPolyDataCollection(const vtkPolyDataCollection&); // Not implemented. 00064 void operator=(const vtkPolyDataCollection&); // Not implemented. 00065 }; 00066 00067 00068 #endif