VTK  9.4.20250206
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
19VTK_ABI_NAMESPACE_BEGIN
20class VTKCOMMONDATAMODEL_EXPORT vtkStructuredPointsCollection : public vtkCollection
21{
22public:
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
50protected:
52 ~vtkStructuredPointsCollection() override = default;
53
54private:
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
62VTK_ABI_NAMESPACE_END
63#endif
create and manipulate ordered lists of objects
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:108
abstract base class for most VTK objects
Definition vtkObject.h:162
maintain a list of structured points data objects
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
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