1 /*=========================================================================
3 Program: Visualization Toolkit
4 Module: $RCSfile: vtkStructuredPointsCollection.h,v $
6 Date: $Date: 2002/10/04 20:43:44 $
7 Version: $Revision: 1.37 $
9 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
11 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notice for more information.
17 =========================================================================*/
18 // .NAME vtkStructuredPointsCollection - maintain a list of structured points data objects
19 // .SECTION Description
20 // vtkStructuredPointsCollection is an object that creates and manipulates
21 // lists of structured points datasets. See also vtkCollection and
24 #ifndef __vtkStructuredPointsCollection_h
25 #define __vtkStructuredPointsCollection_h
27 #include "vtkCollection.h"
28 #include "vtkStructuredPoints.h" // Needed for static cast
30 class VTK_FILTERING_EXPORT vtkStructuredPointsCollection : public vtkCollection
33 static vtkStructuredPointsCollection *New();
34 vtkTypeRevisionMacro(vtkStructuredPointsCollection,vtkCollection);
35 void PrintSelf(ostream& os, vtkIndent indent);
38 // Add a pointer to a vtkStructuredPoints to the list.
39 void AddItem(vtkStructuredPoints *ds) {
40 this->vtkCollection::AddItem((vtkObject *)ds);};
43 // Get the next item in the collection. NULL is returned if the collection
45 vtkStructuredPoints *GetNextItem() {
46 return static_cast<vtkStructuredPoints *>(this->GetNextItemAsObject());};
49 vtkStructuredPointsCollection() {};
50 ~vtkStructuredPointsCollection() {};
55 // hide the standard AddItem from the user and the compiler.
56 void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
59 vtkStructuredPointsCollection(const vtkStructuredPointsCollection&); // Not implemented.
60 void operator=(const vtkStructuredPointsCollection&); // Not implemented.