OSDN Git Service

FIRST REPOSITORY
[eos/hostdependOTHERS.git] / I386LINUX / util / I386LINUX / include / vtk / vtkStructuredPointsCollection.h
1 /*=========================================================================
2
3   Program:   Visualization Toolkit
4   Module:    $RCSfile: vtkStructuredPointsCollection.h,v $
5   Language:  C++
6   Date:      $Date: 2002/10/04 20:43:44 $
7   Version:   $Revision: 1.37 $
8
9   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
10   All rights reserved.
11   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
12
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.
16
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
22 // subclasses.
23
24 #ifndef __vtkStructuredPointsCollection_h
25 #define __vtkStructuredPointsCollection_h
26
27 #include "vtkCollection.h"
28 #include "vtkStructuredPoints.h" // Needed for static cast
29
30 class VTK_FILTERING_EXPORT vtkStructuredPointsCollection : public vtkCollection
31 {
32 public:
33   static vtkStructuredPointsCollection *New();
34   vtkTypeRevisionMacro(vtkStructuredPointsCollection,vtkCollection);
35   void PrintSelf(ostream& os, vtkIndent indent);
36
37   // Description:
38   // Add a pointer to a vtkStructuredPoints to the list.
39   void AddItem(vtkStructuredPoints *ds) {
40     this->vtkCollection::AddItem((vtkObject *)ds);};
41   
42   // Description:
43   // Get the next item in the collection. NULL is returned if the collection
44   // is exhausted.
45   vtkStructuredPoints *GetNextItem() {
46     return static_cast<vtkStructuredPoints *>(this->GetNextItemAsObject());};
47   
48 protected:
49   vtkStructuredPointsCollection() {};
50   ~vtkStructuredPointsCollection() {};
51   
52   
53
54 private:
55   // hide the standard AddItem from the user and the compiler.
56   void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
57
58 private:
59   vtkStructuredPointsCollection(const vtkStructuredPointsCollection&);  // Not implemented.
60   void operator=(const vtkStructuredPointsCollection&);  // Not implemented.
61 };
62
63
64 #endif