OSDN Git Service

FIRST REPOSITORY
[eos/hostdependOTHERS.git] / HP / util / HP / include / vtk / vtkStructuredPointsCollection.h
1 /*=========================================================================
2
3   Program:   Visualization Toolkit
4   Module:    $RCSfile: vtkStructuredPointsCollection.h,v $
5   Language:  C++
6   Date:      $Date: 2002/02/01 06:33:20 $
7   Version:   $Revision: 1.1.1.1 $
8
9
10 Copyright (c) 1993-1998 Ken Martin, Will Schroeder, Bill Lorensen.
11
12 This software is copyrighted by Ken Martin, Will Schroeder and Bill Lorensen.
13 The following terms apply to all files associated with the software unless
14 explicitly disclaimed in individual files. This copyright specifically does
15 not apply to the related textbook "The Visualization Toolkit" ISBN
16 013199837-4 published by Prentice Hall which is covered by its own copyright.
17
18 The authors hereby grant permission to use, copy, and distribute this
19 software and its documentation for any purpose, provided that existing
20 copyright notices are retained in all copies and that this notice is included
21 verbatim in any distributions. Additionally, the authors grant permission to
22 modify this software and its documentation for any purpose, provided that
23 such modifications are not distributed without the explicit consent of the
24 authors and that existing copyright notices are retained in all copies. Some
25 of the algorithms implemented by this software are patented, observe all
26 applicable patent law.
27
28 IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY FOR
29 DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
30 OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY DERIVATIVES THEREOF,
31 EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
33 THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, INCLUDING,
34 BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
35 PARTICULAR PURPOSE, AND NON-INFRINGEMENT.  THIS SOFTWARE IS PROVIDED ON AN
36 "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE
37 MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
38
39
40 =========================================================================*/
41 // .NAME vtkStructuredPointsCollection - maintain a list of structured points data objects
42 // .SECTION Description
43 // vtkStructuredPointsCollection is an object that creates and manipulates lists of
44 // structured points datasets. See also vtkCollection and subclasses.
45
46 #ifndef __vtkStructuredPointsCollection_h
47 #define __vtkStructuredPointsCollection_h
48
49 #include "vtkCollection.h"
50 #include "vtkStructuredPoints.h"
51
52 class VTK_EXPORT vtkStructuredPointsCollection : public vtkCollection
53 {
54 public:
55   static vtkStructuredPointsCollection *New() {return new vtkStructuredPointsCollection;};
56   const char *GetClassName() {return "vtkStructuredPointsCollection";};
57
58   void AddItem(vtkStructuredPoints *);
59   void RemoveItem(vtkStructuredPoints *);
60   int IsItemPresent(vtkStructuredPoints *);
61   vtkStructuredPoints *GetNextItem();
62 };
63
64 // Description:
65 // Add a pointer to a vtkStructuredPoints to the list.
66 inline void vtkStructuredPointsCollection::AddItem(vtkStructuredPoints *ds) 
67 {
68   this->vtkCollection::AddItem((vtkObject *)ds);
69 }
70
71 // Description:
72 // Remove a pointer to a vtkStructuredPoints from the list.
73 inline void vtkStructuredPointsCollection::RemoveItem(vtkStructuredPoints *ds) 
74 {
75   this->vtkCollection::RemoveItem((vtkObject *)ds);
76 }
77
78 // Description:
79 // Determine whether a particular pointer to a vtk StructuredPoints is in
80 // the list.
81 // Returns its position in the list.
82 inline int vtkStructuredPointsCollection::IsItemPresent(vtkStructuredPoints *ds) 
83 {
84   return this->vtkCollection::IsItemPresent((vtkObject *)ds);
85 }
86
87
88 // Description:
89 // Get the next item in the collection. NULL is returned if the collection
90 // is exhausted.
91 inline vtkStructuredPoints *vtkStructuredPointsCollection::GetNextItem()
92 {
93  return (vtkStructuredPoints *)(this->GetNextItemAsObject());
94 }
95
96 #endif