VTK
dox/Filtering/vtkStructuredPointsCollection.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkStructuredPointsCollection.h
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   vtkTypeMacro(vtkStructuredPointsCollection,vtkCollection);
00034   void PrintSelf(ostream& os, vtkIndent indent);
00035 
00037 
00038   void AddItem(vtkStructuredPoints *ds)
00039     {
00040       this->vtkCollection::AddItem(ds);
00041     }
00043   
00045 
00047   vtkStructuredPoints *GetNextItem() {
00048     return static_cast<vtkStructuredPoints *>(this->GetNextItemAsObject());};
00050 
00051     //BTX
00053 
00055   vtkStructuredPoints *GetNextStructuredPoints(
00056     vtkCollectionSimpleIterator &cookie) {
00057     return static_cast<vtkStructuredPoints *>(
00058       this->GetNextItemAsObject(cookie));};
00059   //ETX
00061 
00062 protected:
00063   vtkStructuredPointsCollection() {};
00064   ~vtkStructuredPointsCollection() {};
00065   
00066   
00067 
00068 private:
00069   // hide the standard AddItem from the user and the compiler.
00070   void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
00071 
00072 private:
00073   vtkStructuredPointsCollection(const vtkStructuredPointsCollection&);  // Not implemented.
00074   void operator=(const vtkStructuredPointsCollection&);  // Not implemented.
00075 };
00076 
00077 
00078 #endif