VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Widgets
vtkAngleRepresentation2D.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkAngleRepresentation2D.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
=========================================================================*/
36
#ifndef __vtkAngleRepresentation2D_h
37
#define __vtkAngleRepresentation2D_h
38
39
#include "
vtkAngleRepresentation.h
"
40
41
class
vtkLeaderActor2D
;
42
class
vtkProperty2D
;
43
44
45
class
VTK_WIDGETS_EXPORT
vtkAngleRepresentation2D
:
public
vtkAngleRepresentation
46
{
47
public
:
49
static
vtkAngleRepresentation2D
*
New
();
50
52
53
vtkTypeMacro(
vtkAngleRepresentation2D
,
vtkAngleRepresentation
);
54
void
PrintSelf
(ostream& os,
vtkIndent
indent);
56
58
virtual
double
GetAngle
();
59
61
64
virtual
void
GetPoint1WorldPosition
(
double
pos[3]);
65
virtual
void
GetCenterWorldPosition
(
double
pos[3]);
66
virtual
void
GetPoint2WorldPosition
(
double
pos[3]);
67
virtual
void
SetPoint1DisplayPosition
(
double
pos[3]);
68
virtual
void
SetCenterDisplayPosition
(
double
pos[3]);
69
virtual
void
SetPoint2DisplayPosition
(
double
pos[3]);
70
virtual
void
GetPoint1DisplayPosition
(
double
pos[3]);
71
virtual
void
GetCenterDisplayPosition
(
double
pos[3]);
72
virtual
void
GetPoint2DisplayPosition
(
double
pos[3]);
74
76
79
vtkGetObjectMacro(Ray1,
vtkLeaderActor2D
);
80
vtkGetObjectMacro(Ray2,
vtkLeaderActor2D
);
81
vtkGetObjectMacro(Arc,
vtkLeaderActor2D
);
83
85
void
BuildRepresentation
();
86
88
89
virtual
void
ReleaseGraphicsResources
(
vtkWindow
*w);
90
virtual
int
RenderOverlay
(
vtkViewport
*viewport);
92
93
protected
:
94
vtkAngleRepresentation2D
();
95
~
vtkAngleRepresentation2D
();
96
97
// The pieces that make up the angle representations
98
vtkLeaderActor2D
*
Ray1
;
99
vtkLeaderActor2D
*
Ray2
;
100
vtkLeaderActor2D
*
Arc
;
101
102
private
:
103
vtkAngleRepresentation2D
(
const
vtkAngleRepresentation2D
&);
//Not implemented
104
void
operator=(
const
vtkAngleRepresentation2D
&);
//Not implemented
105
};
106
107
#endif
Generated on Wed Nov 21 2012 21:34:08 for VTK by
1.8.2