VTK: Common/Core/vtkDataArrayCollectionIterator.h Source File

| VTK 9.3.1

vtkDataArrayCollectionIterator.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 vtkDataArrayCollectionIterator_h
13 #define vtkDataArrayCollectionIterator_h
14
15 #include "vtkCollectionIterator.h"
16 #include "vtkCommonCoreModule.h" // For export macro
17
18 VTK_ABI_NAMESPACE_BEGIN
19 class vtkDataArray;
20 class vtkDataArrayCollection;
21
22 class VTKCOMMONCORE_EXPORT vtkDataArrayCollectionIterator : public vtkCollectionIterator
23 {
24 public:
25 vtkTypeMacro(vtkDataArrayCollectionIterator, vtkCollectionIterator);
26 void PrintSelf(ostream& os, vtkIndent indent) override;
27 static vtkDataArrayCollectionIterator* New();
28
30
33 void SetCollection(vtkCollection*) override;
34 void SetCollection(vtkDataArrayCollection*);
36
41 vtkDataArray* GetDataArray();
42
43 protected:
44 vtkDataArrayCollectionIterator();
45 ~vtkDataArrayCollectionIterator() override;
46
47 private:
48 vtkDataArrayCollectionIterator(const vtkDataArrayCollectionIterator&) = delete;
49 void operator=(const vtkDataArrayCollectionIterator&) = delete;
50 };
51
52 VTK_ABI_NAMESPACE_END
53 #endif
vtkCollectionIterator
iterator through a vtkCollection.
Definition: vtkCollectionIterator.h:27
vtkCollection
create and manipulate ordered lists of objects
Definition: vtkCollection.h:45
vtkDataArrayCollectionIterator
iterator through a vtkDataArrayCollection.
Definition: vtkDataArrayCollectionIterator.h:23
vtkDataArrayCollectionIterator::SetCollection
void SetCollection(vtkCollection *) override
Set the collection over which to iterate.
vtkDataArrayCollectionIterator::SetCollection
void SetCollection(vtkDataArrayCollection *)
Set the collection over which to iterate.
vtkDataArrayCollectionIterator::GetDataArray
vtkDataArray * GetDataArray()
Get the item at the current iterator position.
vtkDataArrayCollectionIterator::vtkDataArrayCollectionIterator
vtkDataArrayCollectionIterator()
vtkDataArrayCollectionIterator::~vtkDataArrayCollectionIterator
~vtkDataArrayCollectionIterator() override
vtkDataArrayCollectionIterator::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataArrayCollectionIterator::New
static vtkDataArrayCollectionIterator * New()
vtkDataArrayCollection
maintain an ordered list of dataarray objects
Definition: vtkDataArrayCollection.h:24
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkCollectionIterator.h