VTK  9.3.0
vtkStructuredPointsCollection.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
12 #ifndef vtkStructuredPointsCollection_h
13 #define vtkStructuredPointsCollection_h
14 
15 #include "vtkCollection.h"
16 #include "vtkCommonDataModelModule.h" // For export macro
17 #include "vtkStructuredPoints.h" // Needed for static cast
18 
19 VTK_ABI_NAMESPACE_BEGIN
20 class VTKCOMMONDATAMODEL_EXPORT vtkStructuredPointsCollection : public vtkCollection
21 {
22 public:
25  void PrintSelf(ostream& os, vtkIndent indent) override;
26 
31 
37  {
38  return static_cast<vtkStructuredPoints*>(this->GetNextItemAsObject());
39  }
40 
46  {
47  return static_cast<vtkStructuredPoints*>(this->GetNextItemAsObject(cookie));
48  }
49 
50 protected:
52  ~vtkStructuredPointsCollection() override = default;
53 
54 private:
55  // hide the standard AddItem from the user and the compiler.
56  void AddItem(vtkObject* o) { this->vtkCollection::AddItem(o); }
57 
59  void operator=(const vtkStructuredPointsCollection&) = delete;
60 };
61 
62 VTK_ABI_NAMESPACE_END
63 #endif
create and manipulate ordered lists of objects
Definition: vtkCollection.h:45
void AddItem(vtkObject *)
Add an object to the bottom of the list.
vtkObject * GetNextItemAsObject()
Get the next item in the collection.
a simple class to control print indentation
Definition: vtkIndent.h:29
abstract base class for most VTK objects
Definition: vtkObject.h:52
maintain a list of structured points data objects
vtkStructuredPoints * GetNextItem()
Get the next item in the collection.
void AddItem(vtkStructuredPoints *ds)
Add a pointer to a vtkStructuredPoints to the bottom of the list.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkStructuredPointsCollection() override=default
static vtkStructuredPointsCollection * New()
vtkStructuredPoints * GetNextStructuredPoints(vtkCollectionSimpleIterator &cookie)
Reentrant safe way to get an object in a collection.
A subclass of ImageData.
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:40