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 =========================================================================*/
28 #ifndef vtkImageOrthoPlanes_h
29 #define vtkImageOrthoPlanes_h
30 
31 #include "vtkInteractionWidgetsModule.h" // For export macro
32 #include "vtkObject.h"
33 
35 class vtkTransform;
36 class vtkMatrix4x4;
37 
38 class VTKINTERACTIONWIDGETS_EXPORT vtkImageOrthoPlanes : public vtkObject
39 {
40 public:
41  static vtkImageOrthoPlanes *New();
43  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
44 
46 
49  void SetPlane(int i, vtkImagePlaneWidget *imagePlaneWidget);
50  vtkImagePlaneWidget* GetPlane(int i);
52 
56  void ResetPlanes();
57 
61  vtkTransform *GetTransform() { return this->Transform; };
62 
66  void HandlePlaneEvent(vtkImagePlaneWidget *imagePlaneWidget);
67 
68 protected:
70  ~vtkImageOrthoPlanes() VTK_OVERRIDE;
71 
72  void HandlePlaneRotation(vtkImagePlaneWidget *imagePlaneWidget,
73  int indexOfModifiedPlane);
74  void HandlePlanePush(vtkImagePlaneWidget *imagePlaneWidget,
75  int indexOfModifiedPlane);
76  void HandlePlaneTranslate(vtkImagePlaneWidget *imagePlaneWidget,
77  int indexOfModifiedPlane);
78  void HandlePlaneScale(vtkImagePlaneWidget *imagePlaneWidget,
79  int indexOfModifiedPlane);
80 
81  void SetTransformMatrix(vtkMatrix4x4 *matrix,
82  vtkImagePlaneWidget *currentImagePlane,
83  int indexOfModifiedPlane);
84 
85  void GetBounds(double bounds[3]);
86 
87  // The plane definitions prior to any rotations or scales
88  double Origin[3][3];
89  double Point1[3][3];
90  double Point2[3][3];
91 
92  // The current position and orientation of the bounding box with
93  // respect to the origin.
95 
96  // An array to hold the planes
98 
99  // The number of planes.
100  int NumberOfPlanes;
101 
102  // The observer tags for these planes
103  long *ObserverTags;
104 
105 private:
106  vtkImageOrthoPlanes(const vtkImageOrthoPlanes&) VTK_DELETE_FUNCTION;
107  void operator=(const vtkImageOrthoPlanes&) VTK_DELETE_FUNCTION;
108 };
109 
110 #endif
111 
112 
abstract base class for most VTK objects
Definition: vtkObject.h:53
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:35
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Connect three vtkImagePlaneWidgets together.
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:54
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkTransform * GetTransform()
Get the transform for the planes.
3D widget for reslicing image data
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
Transform
Definition: ADIOSDefs.h:39