VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Interaction
Widgets
vtkDistanceRepresentation2D.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkDistanceRepresentation2D.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 __vtkDistanceRepresentation2D_h
37
#define __vtkDistanceRepresentation2D_h
38
39
#include "vtkInteractionWidgetsModule.h"
// For export macro
40
#include "
vtkDistanceRepresentation.h
"
41
42
class
vtkAxisActor2D
;
43
class
vtkProperty2D
;
44
45
46
class
VTKINTERACTIONWIDGETS_EXPORT
vtkDistanceRepresentation2D
:
public
vtkDistanceRepresentation
47
{
48
public
:
50
static
vtkDistanceRepresentation2D
*
New
();
51
53
54
vtkTypeMacro(
vtkDistanceRepresentation2D
,
vtkDistanceRepresentation
);
55
void
PrintSelf
(ostream& os,
vtkIndent
indent);
57
59
60
virtual
double
GetDistance
()
61
{
return
this->Distance;}
63
65
68
double
*
GetPoint1WorldPosition
();
69
double
*
GetPoint2WorldPosition
();
70
void
GetPoint1WorldPosition
(
double
pos[3]);
71
void
GetPoint2WorldPosition
(
double
pos[3]);
72
void
SetPoint1WorldPosition
(
double
pos[3]);
73
void
SetPoint2WorldPosition
(
double
pos[3]);
75
76
void
SetPoint1DisplayPosition
(
double
pos[3]);
77
void
SetPoint2DisplayPosition
(
double
pos[3]);
78
void
GetPoint1DisplayPosition
(
double
pos[3]);
79
void
GetPoint2DisplayPosition
(
double
pos[3]);
80
82
85
vtkAxisActor2D
*GetAxis();
86
vtkProperty2D
*GetAxisProperty();
88
90
virtual
void
BuildRepresentation
();
91
93
94
virtual
void
ReleaseGraphicsResources
(
vtkWindow
*w);
95
virtual
int
RenderOverlay
(
vtkViewport
*viewport);
96
virtual
int
RenderOpaqueGeometry
(
vtkViewport
*viewport);
98
99
protected
:
100
vtkDistanceRepresentation2D
();
101
~
vtkDistanceRepresentation2D
();
102
103
// Add a line to the mix
104
vtkAxisActor2D
*
AxisActor
;
105
vtkProperty2D
*
AxisProperty
;
106
107
// The distance between the two points
108
double
Distance
;
109
110
private
:
111
vtkDistanceRepresentation2D
(
const
vtkDistanceRepresentation2D
&);
//Not implemented
112
void
operator=(
const
vtkDistanceRepresentation2D
&);
//Not implemented
113
};
114
115
#endif
Generated on Thu May 24 2012 22:22:27 for VTK by
1.8.1