VTK
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 "vtkInteractionWidgetsModule.h" // For export macro
42 
43 class vtkPolyData;
47 class vtkResliceCursor;
48 
49 
51 {
52 public:
55 
57 
59  void PrintSelf(ostream& os, vtkIndent indent);
61 
63 
64  virtual void BuildRepresentation();
65  virtual int ComputeInteractionState(int X, int Y, int modify=0);
66  virtual void StartWidgetInteraction(double startEventPos[2]);
67  virtual void WidgetInteraction(double e[2]);
68  virtual void Highlight(int highlightOn);
70 
72 
74  virtual int RenderOverlay(vtkViewport *viewport);
75  virtual int RenderOpaqueGeometry(vtkViewport *viewport);
79 
82  virtual double * GetBounds();
83 
85 
87  vtkGetObjectMacro( ResliceCursorActor, vtkResliceCursorActor );
89 
92 
95 
96 protected:
99 
101 
102  double RotateAxis( double evenPos[2], int axis );
103 
104  void RotateAxis( int axis, double angle );
105 
106  void RotateVectorAboutVector( double vectorToBeRotated[3],
107  double axis[3], // vector about which we rotate
108  double angle, // angle in radians
109  double o[3] );
111  double displayPos[2], double intersectionPos[3] );
112 
115 
116  double StartPickPosition[3];
117  double StartCenterPosition[3];
118 
119  // Transformation matrices. These have no offset. Offset is recomputed
120  // based on the cursor, so that the center of the cursor has the same
121  // location in transformed space as it does in physical space.
125 
126 private:
128  void operator=(const vtkResliceCursorLineRepresentation&); //Not implemented
129 };
130 
131 #endif
vtkResliceCursorLineRepresentation::RotateAxis
void RotateAxis(int axis, double angle)
vtkResliceCursorLineRepresentation::Picker
vtkResliceCursorPicker * Picker
Definition: vtkResliceCursorLineRepresentation.h:114
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkResliceCursorLineRepresentation::RenderOpaqueGeometry
virtual int RenderOpaqueGeometry(vtkViewport *viewport)
vtkResliceCursorLineRepresentation::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *w)
vtkResliceCursorLineRepresentation::~vtkResliceCursorLineRepresentation
~vtkResliceCursorLineRepresentation()
vtkResliceCursor
Geometry for a reslice cursor.
Definition: vtkResliceCursor.h:46
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkInteractionWidgetsModule.h
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkResliceCursorLineRepresentation::BuildRepresentation
virtual void BuildRepresentation()
vtkResliceCursorLineRepresentation::MatrixReslicedView
vtkMatrix4x4 * MatrixReslicedView
Definition: vtkResliceCursorLineRepresentation.h:124
vtkResliceCursorLineRepresentation::SetUserMatrix
virtual void SetUserMatrix(vtkMatrix4x4 *matrix)
vtkResliceCursorLineRepresentation::HasTranslucentPolygonalGeometry
virtual int HasTranslucentPolygonalGeometry()
vtkResliceCursorLineRepresentation
represent the vtkResliceCursorWidget
Definition: vtkResliceCursorLineRepresentation.h:51
vtkResliceCursorPolyDataAlgorithm
generates a 2D reslice cursor polydata
Definition: vtkResliceCursorPolyDataAlgorithm.h:45
vtkResliceCursorLineRepresentation::GetResliceCursor
virtual vtkResliceCursor * GetResliceCursor()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkMatrix4x4
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:39
vtkResliceCursorLineRepresentation::New
static vtkResliceCursorLineRepresentation * New()
vtkResliceCursorLineRepresentation::ComputeInteractionState
virtual int ComputeInteractionState(int X, int Y, int modify=0)
vtkResliceCursorLineRepresentation::GetCursorAlgorithm
virtual vtkResliceCursorPolyDataAlgorithm * GetCursorAlgorithm()
vtkResliceCursorLineRepresentation::RenderOverlay
virtual int RenderOverlay(vtkViewport *viewport)
vtkResliceCursorLineRepresentation::StartWidgetInteraction
virtual void StartWidgetInteraction(double startEventPos[2])
vtkResliceCursorLineRepresentation::RotateVectorAboutVector
void RotateVectorAboutVector(double vectorToBeRotated[3], double axis[3], double angle, double o[3])
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:47
vtkResliceCursorLineRepresentation::WidgetInteraction
virtual void WidgetInteraction(double e[2])
vtkResliceCursorLineRepresentation::GetBounds
virtual double * GetBounds()
vtkResliceCursorLineRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkResliceCursorLineRepresentation::RotateAxis
double RotateAxis(double evenPos[2], int axis)
vtkResliceCursorLineRepresentation::Highlight
virtual void Highlight(int highlightOn)
vtkResliceCursorActor
Represent a reslice cursor.
Definition: vtkResliceCursorActor.h:40
vtkResliceCursorLineRepresentation::MatrixReslice
vtkMatrix4x4 * MatrixReslice
Definition: vtkResliceCursorLineRepresentation.h:122
VTKINTERACTIONWIDGETS_EXPORT
#define VTKINTERACTIONWIDGETS_EXPORT
Definition: vtkInteractionWidgetsModule.h:15
vtkResliceCursorLineRepresentation::vtkResliceCursorLineRepresentation
vtkResliceCursorLineRepresentation()
vtkResliceCursorLineRepresentation::DisplayToReslicePlaneIntersection
int DisplayToReslicePlaneIntersection(double displayPos[2], double intersectionPos[3])
vtkgl::matrix
GLuint GLenum matrix
Definition: vtkgl.h:16451
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
vtkgl::angle
GLfloat angle
Definition: vtkgl.h:18174
vtkResliceCursorPicker
ray-cast cell picker for the reslice cursor
Definition: vtkResliceCursorPicker.h:46
vtkResliceCursorLineRepresentation::ResliceCursorActor
vtkResliceCursorActor * ResliceCursorActor
Definition: vtkResliceCursorLineRepresentation.h:113
vtkResliceCursorLineRepresentation::RenderTranslucentPolygonalGeometry
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport)
vtkResliceCursorRepresentation.h
vtkgl::w
GLubyte GLubyte GLubyte GLubyte w
Definition: vtkgl.h:12054
vtkResliceCursorLineRepresentation::MatrixView
vtkMatrix4x4 * MatrixView
Definition: vtkResliceCursorLineRepresentation.h:123
vtkResliceCursorRepresentation
represent the vtkResliceCursorWidget
Definition: vtkResliceCursorRepresentation.h:51