VTK  9.1.0
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=========================================================================*/
28#ifndef vtkImageOrthoPlanes_h
29#define vtkImageOrthoPlanes_h
30
31#include "vtkInteractionWidgetsModule.h" // For export macro
32#include "vtkObject.h"
33
35class vtkTransform;
36class vtkMatrix4x4;
37
38class VTKINTERACTIONWIDGETS_EXPORT vtkImageOrthoPlanes : public vtkObject
39{
40public:
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
46
49 void SetPlane(int i, vtkImagePlaneWidget* imagePlaneWidget);
52
57
61 vtkTransform* GetTransform() { return this->Transform; }
62
66 void HandlePlaneEvent(vtkImagePlaneWidget* imagePlaneWidget);
67
68protected:
71
72 void HandlePlaneRotation(vtkImagePlaneWidget* imagePlaneWidget, int indexOfModifiedPlane);
73 void HandlePlanePush(vtkImagePlaneWidget* imagePlaneWidget, int indexOfModifiedPlane);
74 void HandlePlaneTranslate(vtkImagePlaneWidget* imagePlaneWidget, int indexOfModifiedPlane);
75 void HandlePlaneScale(vtkImagePlaneWidget* imagePlaneWidget, int indexOfModifiedPlane);
76
78 vtkMatrix4x4* matrix, vtkImagePlaneWidget* currentImagePlane, int indexOfModifiedPlane);
79
80 void GetBounds(double bounds[3]);
81
82 // The plane definitions prior to any rotations or scales
83 double Origin[3][3];
84 double Point1[3][3];
85 double Point2[3][3];
86
87 // The current position and orientation of the bounding box with
88 // respect to the origin.
90
91 // An array to hold the planes
93
94 // The number of planes.
96
97 // The observer tags for these planes
99
100private:
102 void operator=(const vtkImageOrthoPlanes&) = delete;
103};
104
105#endif
Connect three vtkImagePlaneWidgets together.
static vtkImageOrthoPlanes * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTransform * Transform
~vtkImageOrthoPlanes() override
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)
You must set three planes for the widget.
3D widget for reslicing image data
a simple class to control print indentation
Definition: vtkIndent.h:113
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:145
abstract base class for most VTK objects
Definition: vtkObject.h:73
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:164
@ Transform
Definition: vtkX3D.h:47