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 
73  virtual void ReleaseGraphicsResources(vtkWindow *w);
74  virtual int RenderOverlay(vtkViewport *viewport);
75  virtual int RenderOpaqueGeometry(vtkViewport *viewport);
76  virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport);
77  virtual int HasTranslucentPolygonalGeometry();
79 
82  virtual double * GetBounds();
83 
85 
87  vtkGetObjectMacro( ResliceCursorActor, vtkResliceCursorActor );
89 
92 
94  virtual void SetUserMatrix( vtkMatrix4x4 *matrix);
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] );
110  int DisplayToReslicePlaneIntersection(
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
virtual int RenderOverlay(vtkViewport *vtkNotUsed(viewport))
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:38
virtual int ComputeInteractionState(int X, int Y, int modify=0)
abstract specification for Viewports
Definition: vtkViewport.h:46
virtual void StartWidgetInteraction(double eventPos[2])
generates a 2D reslice cursor polydata
virtual void BuildRepresentation()
virtual vtkResliceCursor * GetResliceCursor()=0
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
virtual void ReleaseGraphicsResources(vtkWindow *)
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
#define VTKINTERACTIONWIDGETS_EXPORT
virtual int HasTranslucentPolygonalGeometry()
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
virtual void WidgetInteraction(double newEventPos[2])
represent the vtkResliceCursorWidget
virtual vtkResliceCursorPolyDataAlgorithm * GetCursorAlgorithm()=0
Represent a reslice cursor.
virtual int RenderOpaqueGeometry(vtkViewport *vtkNotUsed(viewport))
virtual void Highlight(int vtkNotUsed(highlightOn))
static vtkObject * New()
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *vtkNotUsed(viewport))
ray-cast cell picker for the reslice cursor
represent the vtkResliceCursorWidget
Geometry for a reslice cursor.