VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
Label
vtkLabelHierarchyIterator.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkLabelHierarchyIterator.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
-------------------------------------------------------------------------*/
27
#ifndef __vtkLabelHierarchyIterator_h
28
#define __vtkLabelHierarchyIterator_h
29
30
#include "vtkRenderingLabelModule.h"
// For export macro
31
#include "
vtkObject.h
"
32
#include "
vtkStdString.h
"
// for std string
33
#include "
vtkUnicodeString.h
"
// for unicode string
34
35
class
vtkIdTypeArray
;
36
class
vtkLabelHierarchy
;
37
class
vtkPolyData
;
38
39
class
VTKRENDERINGLABEL_EXPORT
vtkLabelHierarchyIterator
:
public
vtkObject
40
{
41
public
:
42
vtkTypeMacro(
vtkLabelHierarchyIterator
,
vtkObject
);
43
virtual
void
PrintSelf
( ostream& os,
vtkIndent
indent );
44
49
virtual
void
Begin
(
vtkIdTypeArray
* ) { }
50
52
virtual
void
Next
() { }
53
55
virtual
bool
IsAtEnd
() {
return
true
; }
56
58
virtual
void
GetPoint(
double
x[3] );
59
61
virtual
void
GetSize(
double
sz[2] );
62
64
virtual
void
GetBoundedSize(
double
sz[2] );
65
67
virtual
int
GetType();
68
70
virtual
vtkStdString
GetLabel();
71
73
virtual
vtkUnicodeString
GetUnicodeLabel();
74
76
virtual
double
GetOrientation();
77
79
virtual
vtkIdType
GetLabelId
() {
return
-1; }
80
82
83
vtkGetObjectMacro(Hierarchy,
vtkLabelHierarchy
);
85
88
virtual
void
SetTraversedBounds(
vtkPolyData
* );
89
93
virtual
void
GetNodeGeometry(
double
ctr[3],
double
&
size
) = 0;
94
98
virtual
void
BoxNode();
99
104
virtual
void
BoxAllNodes(
vtkPolyData
* );
105
107
110
vtkSetMacro(AllBounds,
int
);
111
vtkGetMacro(AllBounds,
int
);
113
114
protected
:
115
vtkLabelHierarchyIterator
();
116
virtual
~
vtkLabelHierarchyIterator
();
117
118
void
BoxNodeInternal3(
const
double
* ctr,
double
sz );
119
void
BoxNodeInternal2(
const
double
* ctr,
double
sz );
120
122
virtual
void
SetHierarchy(
vtkLabelHierarchy
* h );
123
124
vtkLabelHierarchy
*
Hierarchy
;
125
vtkPolyData
*
TraversedBounds
;
126
double
BoundsFactor
;
127
int
AllBounds
;
128
int
AllBoundsRecorded
;
129
130
private
:
131
vtkLabelHierarchyIterator
(
const
vtkLabelHierarchyIterator
& );
// Not implemented.
132
void
operator = (
const
vtkLabelHierarchyIterator
& );
// Not implemented.
133
};
134
135
#endif // __vtkLabelHierarchyIterator_h
Generated on Thu May 24 2012 22:22:36 for VTK by
1.8.1