VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
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 "
vtkObject.h
"
31
#include "
vtkStdString.h
"
// for std string
32
#include "
vtkUnicodeString.h
"
// for unicode string
33
34
class
vtkIdTypeArray
;
35
class
vtkLabelHierarchy
;
36
class
vtkPolyData
;
37
38
class
VTK_RENDERING_EXPORT
vtkLabelHierarchyIterator
:
public
vtkObject
39
{
40
public
:
41
vtkTypeMacro(
vtkLabelHierarchyIterator
,
vtkObject
);
42
virtual
void
PrintSelf
( ostream& os,
vtkIndent
indent );
43
48
virtual
void
Begin
(
vtkIdTypeArray
* ) { }
49
51
virtual
void
Next
() { }
52
54
virtual
bool
IsAtEnd
() {
return
true
; }
55
57
virtual
void
GetPoint(
double
x[3] );
58
60
virtual
void
GetSize(
double
sz[2] );
61
63
virtual
void
GetBoundedSize(
double
sz[2] );
64
66
virtual
int
GetType();
67
69
virtual
vtkStdString
GetLabel();
70
72
virtual
vtkUnicodeString
GetUnicodeLabel();
73
75
virtual
double
GetOrientation();
76
78
virtual
vtkIdType
GetLabelId
() {
return
-1; }
79
81
82
vtkGetObjectMacro(Hierarchy,
vtkLabelHierarchy
);
84
87
virtual
void
SetTraversedBounds(
vtkPolyData
* );
88
92
virtual
void
GetNodeGeometry(
double
ctr[3],
double
&
size
) = 0;
93
97
virtual
void
BoxNode();
98
103
virtual
void
BoxAllNodes(
vtkPolyData
* );
104
106
109
vtkSetMacro(AllBounds,
int
);
110
vtkGetMacro(AllBounds,
int
);
112
113
protected
:
114
vtkLabelHierarchyIterator
();
115
virtual
~
vtkLabelHierarchyIterator
();
116
117
void
BoxNodeInternal3(
const
double
* ctr,
double
sz );
118
void
BoxNodeInternal2(
const
double
* ctr,
double
sz );
119
121
virtual
void
SetHierarchy(
vtkLabelHierarchy
* h );
122
123
vtkLabelHierarchy
*
Hierarchy
;
124
vtkPolyData
*
TraversedBounds
;
125
double
BoundsFactor
;
126
int
AllBounds
;
127
int
AllBoundsRecorded
;
128
129
private
:
130
vtkLabelHierarchyIterator
(
const
vtkLabelHierarchyIterator
& );
// Not implemented.
131
void
operator = (
const
vtkLabelHierarchyIterator
& );
// Not implemented.
132
};
133
134
#endif // __vtkLabelHierarchyIterator_h
Generated on Thu Mar 13 2014 08:10:32 for VTK by
1.8.1.2