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 -------------------------------------------------------------------------*/
36 #ifndef vtkLabelHierarchyCompositeIterator_h
37 #define vtkLabelHierarchyCompositeIterator_h
38 
39 
40 #include "vtkRenderingLabelModule.h" // For export macro
42 
43 class vtkIdTypeArray;
44 class vtkLabelHierarchy;
45 class vtkPolyData;
46 
48 {
49 public:
51  virtual void PrintSelf(ostream& os, vtkIndent indent);
53 
55 
59  { this->AddIterator(it, 1); }
62 
64  virtual void ClearIterators();
65 
70  virtual void Begin( vtkIdTypeArray* );
71 
73  virtual void Next();
74 
76  virtual bool IsAtEnd();
77 
79  virtual vtkIdType GetLabelId();
80 
83 
87  virtual void GetNodeGeometry( double ctr[3], double& size );
88 
90  virtual void BoxNode() { }
91 
93  virtual void BoxAllNodes( vtkPolyData* ) { }
94 
95 protected:
98 
99  //BTX
100  class Internal;
101  Internal* Implementation;
102  //ETX
103 
104 private:
106  void operator = ( const vtkLabelHierarchyCompositeIterator& ); // Not implemented.
107 };
108 
109 #endif // vtkLabelHierarchyCompositeIterator_h
vtkRenderingLabelModule.h
vtkLabelHierarchyCompositeIterator::IsAtEnd
virtual bool IsAtEnd()
vtkgl::count
GLuint GLuint GLsizei count
Definition: vtkgl.h:11315
vtkLabelHierarchy
contains an octree of labels
Definition: vtkLabelHierarchy.h:81
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkLabelHierarchyCompositeIterator::AddIterator
virtual void AddIterator(vtkLabelHierarchyIterator *it, int count)
vtkLabelHierarchyCompositeIterator::Next
virtual void Next()
vtkLabelHierarchyCompositeIterator::GetLabelId
virtual vtkIdType GetLabelId()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
VTKRENDERINGLABEL_EXPORT
#define VTKRENDERINGLABEL_EXPORT
Definition: vtkRenderingLabelModule.h:15
vtkLabelHierarchyCompositeIterator::~vtkLabelHierarchyCompositeIterator
virtual ~vtkLabelHierarchyCompositeIterator()
vtkLabelHierarchyCompositeIterator::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkLabelHierarchyIterator
iterator over vtkLabelHierarchy
Definition: vtkLabelHierarchyIterator.h:40
vtkLabelHierarchyCompositeIterator::Begin
virtual void Begin(vtkIdTypeArray *)
vtkLabelHierarchyCompositeIterator::New
static vtkLabelHierarchyCompositeIterator * New()
vtkLabelHierarchyCompositeIterator
Iterator over sub-iterators.
Definition: vtkLabelHierarchyCompositeIterator.h:48
vtkLabelHierarchyCompositeIterator::Implementation
Internal * Implementation
Definition: vtkLabelHierarchyCompositeIterator.h:100
vtkLabelHierarchyCompositeIterator::BoxAllNodes
virtual void BoxAllNodes(vtkPolyData *)
Definition: vtkLabelHierarchyCompositeIterator.h:93
vtkLabelHierarchyIterator.h
vtkLabelHierarchyCompositeIterator::ClearIterators
virtual void ClearIterators()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkLabelHierarchyCompositeIterator::BoxNode
virtual void BoxNode()
Definition: vtkLabelHierarchyCompositeIterator.h:90
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:49
vtkLabelHierarchyCompositeIterator::AddIterator
virtual void AddIterator(vtkLabelHierarchyIterator *it)
Definition: vtkLabelHierarchyCompositeIterator.h:58
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
vtkLabelHierarchyCompositeIterator::GetNodeGeometry
virtual void GetNodeGeometry(double ctr[3], double &size)
vtkLabelHierarchyCompositeIterator::GetHierarchy
virtual vtkLabelHierarchy * GetHierarchy()
vtkLabelHierarchyCompositeIterator::vtkLabelHierarchyCompositeIterator
vtkLabelHierarchyCompositeIterator()
vtkgl::size
GLsizeiptr size
Definition: vtkgl.h:11843