VTK  9.3.20240424
vtkLabelHierarchyCompositeIterator.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
21#ifndef vtkLabelHierarchyCompositeIterator_h
22#define vtkLabelHierarchyCompositeIterator_h
23
25#include "vtkRenderingLabelModule.h" // For export macro
26
27VTK_ABI_NAMESPACE_BEGIN
28class vtkIdTypeArray;
30class vtkPolyData;
31
33{
34public:
36 void PrintSelf(ostream& os, vtkIndent indent) override;
38
44 virtual void AddIterator(vtkLabelHierarchyIterator* it) { this->AddIterator(it, 1); }
45 virtual void AddIterator(vtkLabelHierarchyIterator* it, int count);
46
50 virtual void ClearIterators();
51
58 void Begin(vtkIdTypeArray*) override;
59
63 void Next() override;
64
68 bool IsAtEnd() override;
69
74
79
86 void GetNodeGeometry(double ctr[3], double& size) override;
87
91 void BoxNode() override {}
92
96 void BoxAllNodes(vtkPolyData*) override {}
97
98protected:
101
102 class Internal;
103 Internal* Implementation;
104
105private:
107 void operator=(const vtkLabelHierarchyCompositeIterator&) = delete;
108};
109
110VTK_ABI_NAMESPACE_END
111#endif // vtkLabelHierarchyCompositeIterator_h
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition vtkIndent.h:108
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkLabelHierarchyCompositeIterator * New()
void Begin(vtkIdTypeArray *) override
Initializes the iterator.
virtual void AddIterator(vtkLabelHierarchyIterator *it, int count)
void BoxAllNodes(vtkPolyData *) override
Not implemented.
virtual void AddIterator(vtkLabelHierarchyIterator *it)
Adds a label iterator to this composite iterator.
void GetNodeGeometry(double ctr[3], double &size) override
Retrieve the coordinates of the center of the current hierarchy node and the size of the node.
vtkIdType GetLabelId() override
Retrieves the current label id.
vtkLabelHierarchy * GetHierarchy() override
Retrieve the current label hierarchy.
virtual void ClearIterators()
Remove all iterators from this composite iterator.
bool IsAtEnd() override
Returns true if the iterator is at the end.
void Next() override
Advance the iterator.
iterator over vtkLabelHierarchy
contains an octree of labels
concrete dataset represents vertices, lines, polygons, and triangle strips
int vtkIdType
Definition vtkType.h:315