VTK  9.3.0
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 
27 VTK_ABI_NAMESPACE_BEGIN
28 class vtkIdTypeArray;
29 class vtkLabelHierarchy;
30 class vtkPolyData;
31 
32 class VTKRENDERINGLABEL_EXPORT vtkLabelHierarchyCompositeIterator : public vtkLabelHierarchyIterator
33 {
34 public:
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 
73  vtkIdType GetLabelId() override;
74 
79 
86  void GetNodeGeometry(double ctr[3], double& size) override;
87 
91  void BoxNode() override {}
92 
96  void BoxAllNodes(vtkPolyData*) override {}
97 
98 protected:
101 
102  class Internal;
103  Internal* Implementation;
104 
105 private:
107  void operator=(const vtkLabelHierarchyCompositeIterator&) = delete;
108 };
109 
110 VTK_ABI_NAMESPACE_END
111 #endif // vtkLabelHierarchyCompositeIterator_h
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition: vtkIndent.h:29
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Begin(vtkIdTypeArray *) override
Initializes the iterator.
static vtkLabelHierarchyCompositeIterator * New()
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
Definition: vtkPolyData.h:80
@ size
Definition: vtkX3D.h:253
int vtkIdType
Definition: vtkType.h:315