VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Interaction
Widgets
vtkImageOrthoPlanes.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkImageOrthoPlanes.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
=========================================================================*/
30
#ifndef __vtkImageOrthoPlanes_h
31
#define __vtkImageOrthoPlanes_h
32
33
#include "vtkInteractionWidgetsModule.h"
// For export macro
34
#include "
vtkObject.h
"
35
36
class
vtkImagePlaneWidget
;
37
class
vtkTransform
;
38
class
vtkMatrix4x4
;
39
40
class
VTKINTERACTIONWIDGETS_EXPORT
vtkImageOrthoPlanes
:
public
vtkObject
41
{
42
public
:
43
static
vtkImageOrthoPlanes
*
New
();
44
vtkTypeMacro(
vtkImageOrthoPlanes
,
vtkObject
);
45
void
PrintSelf
(ostream& os,
vtkIndent
indent);
46
48
49
void
SetPlane(
int
i,
vtkImagePlaneWidget
*imagePlaneWidget);
50
vtkImagePlaneWidget
* GetPlane(
int
i);
52
54
void
ResetPlanes();
55
57
vtkTransform
*
GetTransform
() {
return
this->
Transform
; };
58
60
void
HandlePlaneEvent(
vtkImagePlaneWidget
*imagePlaneWidget);
61
62
protected
:
63
vtkImageOrthoPlanes
();
64
~
vtkImageOrthoPlanes
();
65
66
void
HandlePlaneRotation(
vtkImagePlaneWidget
*imagePlaneWidget,
67
int
indexOfModifiedPlane);
68
void
HandlePlanePush(
vtkImagePlaneWidget
*imagePlaneWidget,
69
int
indexOfModifiedPlane);
70
void
HandlePlaneTranslate(
vtkImagePlaneWidget
*imagePlaneWidget,
71
int
indexOfModifiedPlane);
72
void
HandlePlaneScale(
vtkImagePlaneWidget
*imagePlaneWidget,
73
int
indexOfModifiedPlane);
74
75
void
SetTransformMatrix(
vtkMatrix4x4
*matrix,
76
vtkImagePlaneWidget
*currentImagePlane,
77
int
indexOfModifiedPlane);
78
79
void
GetBounds(
double
bounds[3]);
80
81
// The plane definitions prior to any rotations or scales
82
double
Origin[3][3];
83
double
Point1[3][3];
84
double
Point2[3][3];
85
86
// The current position and orientation of the bounding box with
87
// respect to the origin.
88
vtkTransform
*
Transform
;
89
90
// An array to hold the planes
91
vtkImagePlaneWidget
**
Planes
;
92
93
// The number of planes.
94
int
NumberOfPlanes
;
95
96
// The observer tags for these planes
97
long
*
ObserverTags
;
98
99
private
:
100
vtkImageOrthoPlanes
(
const
vtkImageOrthoPlanes
&);
// Not implemented.
101
void
operator=(
const
vtkImageOrthoPlanes
&);
// Not implemented.
102
};
103
104
#endif
105
106
Generated on Thu May 24 2012 22:22:27 for VTK by
1.8.1