VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Interaction
Widgets
vtkAngleRepresentation3D.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkAngleRepresentation3D.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
=========================================================================*/
33
#ifndef __vtkAngleRepresentation3D_h
34
#define __vtkAngleRepresentation3D_h
35
36
#include "vtkInteractionWidgetsModule.h"
// For export macro
37
#include "
vtkAngleRepresentation.h
"
38
39
class
vtkActor
;
40
class
vtkProperty
;
41
class
vtkPolyDataMapper
;
42
class
vtkLineSource
;
43
class
vtkArcSource
;
44
class
vtkFollower
;
45
class
vtkVectorText
;
46
class
vtkPolyDataMapper
;
47
class
vtkTextProperty
;
48
49
class
VTKINTERACTIONWIDGETS_EXPORT
vtkAngleRepresentation3D
:
public
vtkAngleRepresentation
50
{
51
public
:
53
static
vtkAngleRepresentation3D
*
New
();
54
56
57
vtkTypeMacro(
vtkAngleRepresentation3D
,
vtkAngleRepresentation
);
58
void
PrintSelf
(ostream& os,
vtkIndent
indent);
60
62
virtual
double
GetAngle
();
63
65
68
virtual
void
GetPoint1WorldPosition
(
double
pos[3]);
69
virtual
void
GetCenterWorldPosition
(
double
pos[3]);
70
virtual
void
GetPoint2WorldPosition
(
double
pos[3]);
71
virtual
void
SetPoint1WorldPosition(
double
pos[3]);
72
virtual
void
SetPoint1DisplayPosition
(
double
pos[3]);
73
virtual
void
SetCenterWorldPosition(
double
pos[3]);
74
virtual
void
SetCenterDisplayPosition
(
double
pos[3]);
75
virtual
void
SetPoint2WorldPosition(
double
pos[3]);
76
virtual
void
SetPoint2DisplayPosition
(
double
pos[3]);
77
virtual
void
GetPoint1DisplayPosition
(
double
pos[3]);
78
virtual
void
GetCenterDisplayPosition
(
double
pos[3]);
79
virtual
void
GetPoint2DisplayPosition
(
double
pos[3]);
81
83
86
vtkGetObjectMacro(Ray1,
vtkActor
);
87
vtkGetObjectMacro(Ray2,
vtkActor
);
88
vtkGetObjectMacro(Arc,
vtkActor
);
89
vtkGetObjectMacro(TextActor,
vtkFollower
);
91
93
94
virtual
void
SetTextActorScale(
double
scale
[3] );
95
virtual
double
* GetTextActorScale();
97
99
void
BuildRepresentation
();
100
102
103
virtual
void
ReleaseGraphicsResources
(
vtkWindow
*w);
104
virtual
int
RenderOpaqueGeometry
(
vtkViewport
*);
105
virtual
int
RenderTranslucentPolygonalGeometry
(
vtkViewport
*);
106
virtual
int
HasTranslucentPolygonalGeometry
();
108
109
protected
:
110
vtkAngleRepresentation3D
();
111
~
vtkAngleRepresentation3D
();
112
113
// The pieces that make up the angle representations
114
vtkLineSource
*
Line1Source
;
115
vtkLineSource
*
Line2Source
;
116
vtkArcSource
*
ArcSource
;
117
vtkPolyDataMapper
*
Line1Mapper
;
118
vtkPolyDataMapper
*
Line2Mapper
;
119
vtkPolyDataMapper
*
ArcMapper
;
120
vtkActor
*
Ray1
;
121
vtkActor
*
Ray2
;
122
vtkActor
*
Arc
;
123
vtkFollower
*
TextActor
;
124
vtkPolyDataMapper
*
TextMapper
;
125
vtkVectorText
*
TextInput
;
126
double
Angle
;
127
bool
ScaleInitialized
;
128
double
TextPosition[3];
129
130
private
:
131
vtkAngleRepresentation3D
(
const
vtkAngleRepresentation3D
&);
//Not implemented
132
void
operator=(
const
vtkAngleRepresentation3D
&);
//Not implemented
133
};
134
135
#endif
Generated on Thu May 24 2012 22:22:27 for VTK by
1.8.1