1 /*=========================================================================
3 Program: Visualization Toolkit
4 Module: $RCSfile: vtkDataSetCollection.h,v $
6 Date: $Date: 2002/12/26 18:24:21 $
7 Version: $Revision: 1.18 $
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 vtkDataSetCollection - maintain an unordered list of dataset objects
19 // .SECTION Description
20 // vtkDataSetCollection is an object that creates and manipulates lists of
21 // datasets. See also vtkCollection and subclasses.
23 #ifndef __vtkDataSetCollection_h
24 #define __vtkDataSetCollection_h
26 #include "vtkCollection.h"
28 #include "vtkDataSet.h" // Needed for inline methods.
30 class VTK_COMMON_EXPORT vtkDataSetCollection : public vtkCollection
33 static vtkDataSetCollection *New();
34 vtkTypeRevisionMacro(vtkDataSetCollection,vtkCollection);
37 // Add a dataset to the list.
38 void AddItem(vtkDataSet *ds) {
39 this->vtkCollection::AddItem((vtkObject *)ds);};
42 // Get the next dataset in the list.
43 vtkDataSet *GetNextItem() {
44 return static_cast<vtkDataSet *>(this->GetNextItemAsObject());};
47 // Get the ith dataset in the list.
48 vtkDataSet *GetItem(int i) {
49 return static_cast<vtkDataSet *>(this->GetItemAsObject(i));};
52 vtkDataSetCollection() {};
53 ~vtkDataSetCollection() {};
57 // hide the standard AddItem from the user and the compiler.
58 void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
61 vtkDataSetCollection(const vtkDataSetCollection&); // Not implemented.
62 void operator=(const vtkDataSetCollection&); // Not implemented.