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
44class vtkIdTypeArray;
46class vtkPolyData;
47
49{
50public:
52 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
54
61 { this->AddIterator(it, 1); }
62 virtual void AddIterator(vtkLabelHierarchyIterator* it, int count);
63
67 virtual void ClearIterators();
68
75 virtual void Begin( vtkIdTypeArray* );
76
80 virtual void Next();
81
85 virtual bool IsAtEnd();
86
91
96
103 virtual void GetNodeGeometry( double ctr[3], double& size );
104
108 virtual void BoxNode() { }
109
113 virtual void BoxAllNodes( vtkPolyData* ) { }
114
115protected:
118
119 class Internal;
120 Internal* Implementation;
121
122private:
124 void operator = ( const vtkLabelHierarchyCompositeIterator& ) VTK_DELETE_FUNCTION;
125};
126
127#endif // vtkLabelHierarchyCompositeIterator_h
dynamic, self-adjusting array of vtkIdType
a simple class to control print indentation
Definition: vtkIndent.h:40
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void BoxAllNodes(vtkPolyData *)
Not implemented.
static vtkLabelHierarchyCompositeIterator * New()
virtual vtkIdType GetLabelId()
Retrieves the current label id.
virtual void Begin(vtkIdTypeArray *)
Initializes the iterator.
virtual bool IsAtEnd()
Returns true if the iterator is at the end.
virtual void AddIterator(vtkLabelHierarchyIterator *it, int count)
virtual void Next()
Advance the iterator.
virtual void GetNodeGeometry(double ctr[3], double &size)
Retrieve the coordinates of the center of the current hierarchy node and the size of the node.
virtual void AddIterator(vtkLabelHierarchyIterator *it)
Adds a label iterator to this composite iterator.
virtual vtkLabelHierarchy * GetHierarchy()
Retrieve the current label hierarchy.
virtual void ClearIterators()
Remove all iterators from this composite iterator.
iterator over vtkLabelHierarchy
contains an octree of labels
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
@ size
Definition: vtkX3D.h:253
int vtkIdType
Definition: vtkType.h:287