VTK  9.3.1
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
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:40
vtkStructuredPoints * GetNextItem()
Get the next item in the collection.
abstract base class for most VTK objects
Definition: vtkObject.h:51
a simple class to control print indentation
Definition: vtkIndent.h:28
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:44
vtkObject * GetNextItemAsObject()
Get the next item in the collection.