VTK
vtkStructuredPointsCollection.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkStructuredPointsCollection.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
23 #ifndef vtkStructuredPointsCollection_h
24 #define vtkStructuredPointsCollection_h
25 
26 #include "vtkCommonDataModelModule.h" // For export macro
27 #include "vtkCollection.h"
28 #include "vtkStructuredPoints.h" // Needed for static cast
29 
31 {
32 public:
35  void PrintSelf(ostream& os, vtkIndent indent);
36 
38 
40  {
41  this->vtkCollection::AddItem(ds);
42  }
44 
46 
49  return static_cast<vtkStructuredPoints *>(this->GetNextItemAsObject());};
51 
52  //BTX
54 
58  return static_cast<vtkStructuredPoints *>(
59  this->GetNextItemAsObject(cookie));};
60  //ETX
62 
63 protected:
66 
67 
68 
69 private:
70  // hide the standard AddItem from the user and the compiler.
71  void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
72 
73 private:
75  void operator=(const vtkStructuredPointsCollection&); // Not implemented.
76 };
77 
78 
79 #endif
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:47
abstract base class for most VTK objects
Definition: vtkObject.h:61
void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
void AddItem(vtkStructuredPoints *ds)
static vtkCollection * New()
vtkStructuredPoints * GetNextStructuredPoints(vtkCollectionSimpleIterator &cookie)
maintain a list of structured points data objects
void AddItem(vtkObject *)
A subclass of ImageData.
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:52
vtkObject * GetNextItemAsObject()
#define VTKCOMMONDATAMODEL_EXPORT