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