VTK
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=========================================================================*/
31#ifndef vtkImageOrthoPlanes_h
32#define vtkImageOrthoPlanes_h
33
34#include "vtkInteractionWidgetsModule.h" // For export macro
35#include "vtkObject.h"
36
38class vtkTransform;
39class vtkMatrix4x4;
40
41class VTKINTERACTIONWIDGETS_EXPORT vtkImageOrthoPlanes : public vtkObject
42{
43public:
46 void PrintSelf(ostream& os, vtkIndent indent);
47
49
52 void SetPlane(int i, vtkImagePlaneWidget *imagePlaneWidget);
55
60
64 vtkTransform *GetTransform() { return this->Transform; };
65
69 void HandlePlaneEvent(vtkImagePlaneWidget *imagePlaneWidget);
70
71protected:
74
76 int indexOfModifiedPlane);
77 void HandlePlanePush(vtkImagePlaneWidget *imagePlaneWidget,
78 int indexOfModifiedPlane);
80 int indexOfModifiedPlane);
81 void HandlePlaneScale(vtkImagePlaneWidget *imagePlaneWidget,
82 int indexOfModifiedPlane);
83
85 vtkImagePlaneWidget *currentImagePlane,
86 int indexOfModifiedPlane);
87
88 void GetBounds(double bounds[3]);
89
90 // The plane definitions prior to any rotations or scales
91 double Origin[3][3];
92 double Point1[3][3];
93 double Point2[3][3];
94
95 // The current position and orientation of the bounding box with
96 // respect to the origin.
98
99 // An array to hold the planes
101
102 // The number of planes.
104
105 // The observer tags for these planes
107
108private:
109 vtkImageOrthoPlanes(const vtkImageOrthoPlanes&) VTK_DELETE_FUNCTION;
110 void operator=(const vtkImageOrthoPlanes&) VTK_DELETE_FUNCTION;
111};
112
113#endif
114
115
Connect three vtkImagePlaneWidgets together.
static vtkImageOrthoPlanes * New()
vtkTransform * Transform
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void GetBounds(double bounds[3])
void HandlePlaneRotation(vtkImagePlaneWidget *imagePlaneWidget, int indexOfModifiedPlane)
void HandlePlaneScale(vtkImagePlaneWidget *imagePlaneWidget, int indexOfModifiedPlane)
void HandlePlaneEvent(vtkImagePlaneWidget *imagePlaneWidget)
A public method to be used only by the event callback.
void ResetPlanes()
Reset the planes to original scale, rotation, and location.
void HandlePlanePush(vtkImagePlaneWidget *imagePlaneWidget, int indexOfModifiedPlane)
vtkImagePlaneWidget ** Planes
void HandlePlaneTranslate(vtkImagePlaneWidget *imagePlaneWidget, int indexOfModifiedPlane)
void SetTransformMatrix(vtkMatrix4x4 *matrix, vtkImagePlaneWidget *currentImagePlane, int indexOfModifiedPlane)
vtkTransform * GetTransform()
Get the transform for the planes.
void SetPlane(int i, vtkImagePlaneWidget *imagePlaneWidget)
You must set three planes for the widget.
vtkImagePlaneWidget * GetPlane(int i)
3D widget for reslicing image data
a simple class to control print indentation
Definition: vtkIndent.h:40
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:42
abstract base class for most VTK objects
Definition: vtkObject.h:60
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:61
Transform
Definition: ADIOSDefs.h:40