VTK
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 
40 
41 #include "vtkRenderingLabelModule.h" // For export macro
43 
44 class vtkIdTypeArray;
45 class vtkLabelHierarchy;
46 class vtkPolyData;
47 
48 class VTKRENDERINGLABEL_EXPORT vtkLabelHierarchyCompositeIterator : public vtkLabelHierarchyIterator
49 {
50 public:
52  void PrintSelf(ostream& os, vtkIndent indent) override;
54 
61  { this->AddIterator(it, 1); }
62  virtual void AddIterator(vtkLabelHierarchyIterator* it, int count);
63 
67  virtual void ClearIterators();
68 
75  void Begin( vtkIdTypeArray* ) override;
76 
80  void Next() override;
81 
85  bool IsAtEnd() override;
86 
90  vtkIdType GetLabelId() override;
91 
95  vtkLabelHierarchy* GetHierarchy() override;
96 
103  void GetNodeGeometry( double ctr[3], double& size ) override;
104 
108  void BoxNode() override { }
109 
113  void BoxAllNodes( vtkPolyData* ) override { }
114 
115 protected:
118 
119  class Internal;
120  Internal* Implementation;
121 
122 private:
124  void operator = ( const vtkLabelHierarchyCompositeIterator& ) = delete;
125 };
126 
127 #endif // vtkLabelHierarchyCompositeIterator_h
vtkLabelHierarchyIterator::GetLabelId
virtual vtkIdType GetLabelId()
Retrieves the current label id.
Definition: vtkLabelHierarchyIterator.h:102
vtkLabelHierarchy
contains an octree of labels
Definition: vtkLabelHierarchy.h:81
vtkIdType
int vtkIdType
Definition: vtkType.h:347
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkLabelHierarchyIterator::IsAtEnd
virtual bool IsAtEnd()
Returns true if the iterator is at the end.
Definition: vtkLabelHierarchyIterator.h:62
vtkLabelHierarchyIterator
iterator over vtkLabelHierarchy
Definition: vtkLabelHierarchyIterator.h:40
vtkLabelHierarchyCompositeIterator::BoxNode
void BoxNode() override
Not implemented.
Definition: vtkLabelHierarchyCompositeIterator.h:108
vtkLabelHierarchyCompositeIterator
Iterator over sub-iterators.
Definition: vtkLabelHierarchyCompositeIterator.h:48
vtkLabelHierarchyCompositeIterator::Implementation
Internal * Implementation
Definition: vtkLabelHierarchyCompositeIterator.h:119
vtkLabelHierarchyIterator.h
vtkLabelHierarchyIterator::GetHierarchy
virtual vtkLabelHierarchy * GetHierarchy()
Get the label hierarchy associated with the current label.
vtkLabelHierarchyCompositeIterator::BoxAllNodes
void BoxAllNodes(vtkPolyData *) override
Not implemented.
Definition: vtkLabelHierarchyCompositeIterator.h:113
vtkLabelHierarchyIterator::Begin
virtual void Begin(vtkIdTypeArray *)
Initializes the iterator.
Definition: vtkLabelHierarchyIterator.h:52
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkX3D::size
Definition: vtkX3D.h:253
vtkLabelHierarchyIterator::Next
virtual void Next()
Advance the iterator.
Definition: vtkLabelHierarchyIterator.h:57
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:41
vtkLabelHierarchyCompositeIterator::AddIterator
virtual void AddIterator(vtkLabelHierarchyIterator *it)
Adds a label iterator to this composite iterator.
Definition: vtkLabelHierarchyCompositeIterator.h:60
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
vtkLabelHierarchyIterator::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkLabelHierarchyIterator::GetNodeGeometry
virtual void GetNodeGeometry(double ctr[3], double &size)=0
Retrieve the coordinates of the center of the current hierarchy node and the size of the node.