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=========================================================================*/
24#ifndef vtkStructuredPointsCollection_h
25#define vtkStructuredPointsCollection_h
26
27#include "vtkCommonDataModelModule.h" // For export macro
28#include "vtkCollection.h"
29#include "vtkStructuredPoints.h" // Needed for static cast
30
31class VTKCOMMONDATAMODEL_EXPORT vtkStructuredPointsCollection : public vtkCollection
32{
33public:
36 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
37
42 {
43 this->vtkCollection::AddItem(ds);
44 }
45
51 return static_cast<vtkStructuredPoints *>(this->GetNextItemAsObject());};
52
59 return static_cast<vtkStructuredPoints *>(
60 this->GetNextItemAsObject(cookie));};
61
62protected:
65
66
67
68private:
69 // hide the standard AddItem from the user and the compiler.
70 void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
71
72private:
74 void operator=(const vtkStructuredPointsCollection&) VTK_DELETE_FUNCTION;
75};
76
77
78#endif
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:52
void AddItem(vtkObject *)
Add an object to the list.
vtkObject * GetNextItemAsObject()
Get the next item in the collection.
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract base class for most VTK objects
Definition: vtkObject.h:60
maintain a list of structured points data objects
void AddItem(vtkStructuredPoints *ds)
Add a pointer to a vtkStructuredPoints to the list.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkStructuredPoints * GetNextStructuredPoints(vtkCollectionSimpleIterator &cookie)
Reentrant safe way to get an object in a collection.
static vtkStructuredPointsCollection * New()
vtkStructuredPoints * GetNextItem()
Get the next item in the collection.
A subclass of ImageData.
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:47