VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Widgets
vtkResliceCursorLineRepresentation.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkResliceCursorLineRepresentation.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
=========================================================================*/
37
#ifndef __vtkResliceCursorLineRepresentation_h
38
#define __vtkResliceCursorLineRepresentation_h
39
40
#include "
vtkResliceCursorRepresentation.h
"
41
42
class
vtkPolyData
;
43
class
vtkResliceCursorActor
;
44
class
vtkResliceCursorPolyDataAlgorithm
;
45
class
vtkResliceCursorPicker
;
46
class
vtkResliceCursor
;
47
48
49
class
VTK_WIDGETS_EXPORT
vtkResliceCursorLineRepresentation
:
public
vtkResliceCursorRepresentation
50
{
51
public
:
53
static
vtkResliceCursorLineRepresentation
*
New
();
54
56
57
vtkTypeMacro(
vtkResliceCursorLineRepresentation
,
vtkResliceCursorRepresentation
);
58
void
PrintSelf
(ostream& os,
vtkIndent
indent);
60
62
63
virtual
void
BuildRepresentation
();
64
virtual
int
ComputeInteractionState
(
int
X,
int
Y,
int
modify=0);
65
virtual
void
StartWidgetInteraction
(
double
startEventPos[2]);
66
virtual
void
WidgetInteraction
(
double
e[2]);
67
virtual
void
Highlight
(
int
highlightOn);
69
71
72
virtual
void
ReleaseGraphicsResources
(
vtkWindow
*w);
73
virtual
int
RenderOverlay
(
vtkViewport
*viewport);
74
virtual
int
RenderOpaqueGeometry
(
vtkViewport
*viewport);
75
virtual
int
RenderTranslucentPolygonalGeometry
(
vtkViewport
*viewport);
76
virtual
int
HasTranslucentPolygonalGeometry
();
78
81
virtual
double
*
GetBounds
();
82
84
86
vtkGetObjectMacro( ResliceCursorActor,
vtkResliceCursorActor
);
88
90
virtual
vtkResliceCursor
*
GetResliceCursor
();
91
93
virtual
void
SetUserMatrix(
vtkMatrix4x4
*matrix);
94
95
protected
:
96
vtkResliceCursorLineRepresentation
();
97
~
vtkResliceCursorLineRepresentation
();
98
99
virtual
vtkResliceCursorPolyDataAlgorithm
*
GetCursorAlgorithm
();
100
101
double
RotateAxis(
double
evenPos[2],
int
axis );
102
103
void
RotateAxis(
int
axis,
double
angle );
104
105
void
RotateVectorAboutVector(
double
vectorToBeRotated[3],
106
double
axis[3],
// vector about which we rotate
107
double
angle,
// angle in radians
108
double
o[3] );
109
int
DisplayToReslicePlaneIntersection(
110
double
displayPos[2],
double
intersectionPos[3] );
111
112
vtkResliceCursorActor
*
ResliceCursorActor
;
113
vtkResliceCursorPicker
*
Picker
;
114
115
double
StartPickPosition[3];
116
double
StartCenterPosition[3];
117
118
// Transformation matrices. These have no offset. Offset is recomputed
119
// based on the cursor, so that the center of the cursor has the same
120
// location in transformed space as it does in physical space.
121
vtkMatrix4x4
*
MatrixReslice
;
122
vtkMatrix4x4
*
MatrixView
;
123
vtkMatrix4x4
*
MatrixReslicedView
;
124
125
private
:
126
vtkResliceCursorLineRepresentation
(
const
vtkResliceCursorLineRepresentation
&);
//Not implemented
127
void
operator=(
const
vtkResliceCursorLineRepresentation
&);
//Not implemented
128
};
129
130
#endif
Generated on Tue Jan 8 2013 05:45:41 for VTK by
1.8.1.2