VTK  9.0.1
vtkLabelHierarchyCompositeIterator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkLabelHierarchyCompositeIterator.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
37 #ifndef vtkLabelHierarchyCompositeIterator_h
38 #define vtkLabelHierarchyCompositeIterator_h
39 
41 #include "vtkRenderingLabelModule.h" // For export macro
42 
43 class vtkIdTypeArray;
44 class vtkLabelHierarchy;
45 class vtkPolyData;
46 
47 class VTKRENDERINGLABEL_EXPORT vtkLabelHierarchyCompositeIterator : public vtkLabelHierarchyIterator
48 {
49 public:
51  void PrintSelf(ostream& os, vtkIndent indent) override;
53 
59  virtual void AddIterator(vtkLabelHierarchyIterator* it) { this->AddIterator(it, 1); }
60  virtual void AddIterator(vtkLabelHierarchyIterator* it, int count);
61 
65  virtual void ClearIterators();
66 
73  void Begin(vtkIdTypeArray*) override;
74 
78  void Next() override;
79 
83  bool IsAtEnd() override;
84 
88  vtkIdType GetLabelId() override;
89 
94 
101  void GetNodeGeometry(double ctr[3], double& size) override;
102 
106  void BoxNode() override {}
107 
111  void BoxAllNodes(vtkPolyData*) override {}
112 
113 protected:
116 
117  class Internal;
118  Internal* Implementation;
119 
120 private:
122  void operator=(const vtkLabelHierarchyCompositeIterator&) = delete;
123 };
124 
125 #endif // vtkLabelHierarchyCompositeIterator_h
vtkLabelHierarchyCompositeIterator::Begin
void Begin(vtkIdTypeArray *) override
Initializes the iterator.
vtkLabelHierarchyCompositeIterator::Next
void Next() override
Advance the iterator.
vtkLabelHierarchy
contains an octree of labels
Definition: vtkLabelHierarchy.h:80
vtkIdType
int vtkIdType
Definition: vtkType.h:338
vtkLabelHierarchyCompositeIterator::IsAtEnd
bool IsAtEnd() override
Returns true if the iterator is at the end.
vtkLabelHierarchyCompositeIterator::AddIterator
virtual void AddIterator(vtkLabelHierarchyIterator *it, int count)
vtkLabelHierarchyCompositeIterator::~vtkLabelHierarchyCompositeIterator
~vtkLabelHierarchyCompositeIterator() override
vtkLabelHierarchyIterator
iterator over vtkLabelHierarchy
Definition: vtkLabelHierarchyIterator.h:41
vtkLabelHierarchyCompositeIterator::New
static vtkLabelHierarchyCompositeIterator * New()
vtkLabelHierarchyCompositeIterator::BoxNode
void BoxNode() override
Not implemented.
Definition: vtkLabelHierarchyCompositeIterator.h:106
vtkLabelHierarchyCompositeIterator
Iterator over sub-iterators.
Definition: vtkLabelHierarchyCompositeIterator.h:48
vtkLabelHierarchyCompositeIterator::Implementation
Internal * Implementation
Definition: vtkLabelHierarchyCompositeIterator.h:117
vtkLabelHierarchyIterator.h
vtkLabelHierarchyCompositeIterator::BoxAllNodes
void BoxAllNodes(vtkPolyData *) override
Not implemented.
Definition: vtkLabelHierarchyCompositeIterator.h:111
vtkLabelHierarchyCompositeIterator::GetLabelId
vtkIdType GetLabelId() override
Retrieves the current label id.
vtkLabelHierarchyCompositeIterator::ClearIterators
virtual void ClearIterators()
Remove all iterators from this composite iterator.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkX3D::size
@ size
Definition: vtkX3D.h:259
vtkLabelHierarchyCompositeIterator::GetNodeGeometry
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.
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:36
vtkLabelHierarchyCompositeIterator::AddIterator
virtual void AddIterator(vtkLabelHierarchyIterator *it)
Adds a label iterator to this composite iterator.
Definition: vtkLabelHierarchyCompositeIterator.h:59
vtkLabelHierarchyCompositeIterator::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkLabelHierarchyCompositeIterator::GetHierarchy
vtkLabelHierarchy * GetHierarchy() override
Retrieve the current label hierarchy.
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
vtkLabelHierarchyCompositeIterator::vtkLabelHierarchyCompositeIterator
vtkLabelHierarchyCompositeIterator()