00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkStructuredPointsCollection.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 =========================================================================*/ 00023 #ifndef __vtkStructuredPointsCollection_h 00024 #define __vtkStructuredPointsCollection_h 00025 00026 #include "vtkCollection.h" 00027 #include "vtkStructuredPoints.h" // Needed for static cast 00028 00029 class VTK_FILTERING_EXPORT vtkStructuredPointsCollection : public vtkCollection 00030 { 00031 public: 00032 static vtkStructuredPointsCollection *New(); 00033 vtkTypeRevisionMacro(vtkStructuredPointsCollection,vtkCollection); 00034 void PrintSelf(ostream& os, vtkIndent indent); 00035 00037 00038 void AddItem(vtkStructuredPoints *ds) { 00039 this->vtkCollection::AddItem((vtkObject *)ds);}; 00041 00043 00045 vtkStructuredPoints *GetNextItem() { 00046 return static_cast<vtkStructuredPoints *>(this->GetNextItemAsObject());}; 00048 00049 protected: 00050 vtkStructuredPointsCollection() {}; 00051 ~vtkStructuredPointsCollection() {}; 00052 00053 00054 00055 private: 00056 // hide the standard AddItem from the user and the compiler. 00057 void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); }; 00058 00059 private: 00060 vtkStructuredPointsCollection(const vtkStructuredPointsCollection&); // Not implemented. 00061 void operator=(const vtkStructuredPointsCollection&); // Not implemented. 00062 }; 00063 00064 00065 #endif