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

vtkStructuredPointsCollection.h

Go to the documentation of this file.
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 =========================================================================*/
00037 #ifndef __vtkStructuredPointsCollection_h
00038 #define __vtkStructuredPointsCollection_h
00039 
00040 #include "vtkCollection.h"
00041 #include "vtkStructuredPoints.h" // Needed for static cast
00042 
00043 class VTK_FILTERING_EXPORT vtkStructuredPointsCollection : public vtkCollection
00044 {
00045 public:
00046   static vtkStructuredPointsCollection *New();
00047   vtkTypeRevisionMacro(vtkStructuredPointsCollection,vtkCollection);
00048   void PrintSelf(ostream& os, vtkIndent indent);
00049 
00051 
00052   void AddItem(vtkStructuredPoints *ds) {
00053     this->vtkCollection::AddItem((vtkObject *)ds);};
00055   
00057 
00059   vtkStructuredPoints *GetNextItem() {
00060     return static_cast<vtkStructuredPoints *>(this->GetNextItemAsObject());};
00062 
00063     //BTX
00065 
00067   vtkStructuredPoints *GetNextStructuredPoints(
00068     vtkCollectionSimpleIterator &cookie) {
00069     return static_cast<vtkStructuredPoints *>(
00070       this->GetNextItemAsObject(cookie));};
00071   //ETX
00073 
00074 protected:
00075   vtkStructuredPointsCollection() {};
00076   ~vtkStructuredPointsCollection() {};
00077   
00078   
00079 
00080 private:
00081   // hide the standard AddItem from the user and the compiler.
00082   void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
00083 
00084 private:
00085   vtkStructuredPointsCollection(const vtkStructuredPointsCollection&);  // Not implemented.
00086   void operator=(const vtkStructuredPointsCollection&);  // Not implemented.
00087 };
00088 
00089 
00090 #endif