VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Interaction
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 "vtkInteractionWidgetsModule.h"
// For export macro
40
#include "
vtkAngleRepresentation.h
"
41
42
class
vtkLeaderActor2D
;
43
class
vtkProperty2D
;
44
45
46
class
VTKINTERACTIONWIDGETS_EXPORT
vtkAngleRepresentation2D
:
public
vtkAngleRepresentation
47
{
48
public
:
50
static
vtkAngleRepresentation2D
*
New
();
51
53
54
vtkTypeMacro(
vtkAngleRepresentation2D
,
vtkAngleRepresentation
);
55
void
PrintSelf
(ostream& os,
vtkIndent
indent);
57
59
virtual
double
GetAngle
();
60
62
65
virtual
void
GetPoint1WorldPosition
(
double
pos[3]);
66
virtual
void
GetCenterWorldPosition
(
double
pos[3]);
67
virtual
void
GetPoint2WorldPosition
(
double
pos[3]);
68
virtual
void
SetPoint1DisplayPosition
(
double
pos[3]);
69
virtual
void
SetCenterDisplayPosition
(
double
pos[3]);
70
virtual
void
SetPoint2DisplayPosition
(
double
pos[3]);
71
virtual
void
GetPoint1DisplayPosition
(
double
pos[3]);
72
virtual
void
GetCenterDisplayPosition
(
double
pos[3]);
73
virtual
void
GetPoint2DisplayPosition
(
double
pos[3]);
75
77
80
vtkGetObjectMacro(Ray1,
vtkLeaderActor2D
);
81
vtkGetObjectMacro(Ray2,
vtkLeaderActor2D
);
82
vtkGetObjectMacro(Arc,
vtkLeaderActor2D
);
84
86
void
BuildRepresentation
();
87
89
90
virtual
void
ReleaseGraphicsResources
(
vtkWindow
*w);
91
virtual
int
RenderOverlay
(
vtkViewport
*viewport);
93
94
protected
:
95
vtkAngleRepresentation2D
();
96
~
vtkAngleRepresentation2D
();
97
98
// The pieces that make up the angle representations
99
vtkLeaderActor2D
*
Ray1
;
100
vtkLeaderActor2D
*
Ray2
;
101
vtkLeaderActor2D
*
Arc
;
102
103
private
:
104
vtkAngleRepresentation2D
(
const
vtkAngleRepresentation2D
&);
//Not implemented
105
void
operator=(
const
vtkAngleRepresentation2D
&);
//Not implemented
106
};
107
108
#endif
Generated on Thu May 24 2012 22:22:27 for VTK by
1.8.1