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 protected: 00051 vtkPolyDataCollection() {}; 00052 ~vtkPolyDataCollection() {}; 00053 00054 private: 00055 // hide the standard AddItem from the user and the compiler. 00056 void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); }; 00057 00058 private: 00059 vtkPolyDataCollection(const vtkPolyDataCollection&); // Not implemented. 00060 void operator=(const vtkPolyDataCollection&); // Not implemented. 00061 }; 00062 00063 00064 #endif