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 
41 
42 class vtkPolyData;
46 class vtkResliceCursor;
47 
48 
50 {
51 public:
54 
56 
58  void PrintSelf(ostream& os, vtkIndent indent);
60 
62 
63  virtual void BuildRepresentation();
64  virtual int ComputeInteractionState(int X, int Y, int modify=0);
65  virtual void StartWidgetInteraction(double startEventPos[2]);
66  virtual void WidgetInteraction(double e[2]);
67  virtual void Highlight(int highlightOn);
69 
71 
72  virtual void ReleaseGraphicsResources(vtkWindow *w);
73  virtual int RenderOverlay(vtkViewport *viewport);
74  virtual int RenderOpaqueGeometry(vtkViewport *viewport);
75  virtual int RenderTranslucentPolygonalGeometry(vtkViewport *viewport);
76  virtual int HasTranslucentPolygonalGeometry();
78 
81  virtual double * GetBounds();
82 
84 
86  vtkGetObjectMacro( ResliceCursorActor, vtkResliceCursorActor );
88 
91 
93  virtual void SetUserMatrix( vtkMatrix4x4 *matrix);
94 
95 protected:
98 
100 
101  double RotateAxis( double evenPos[2], int axis );
102 
103  void RotateAxis( int axis, double angle );
104 
105  void RotateVectorAboutVector( double vectorToBeRotated[3],
106  double axis[3], // vector about which we rotate
107  double angle, // angle in radians
108  double o[3] );
109  int DisplayToReslicePlaneIntersection(
110  double displayPos[2], double intersectionPos[3] );
111 
114 
115  double StartPickPosition[3];
116  double StartCenterPosition[3];
117 
118  // Transformation matrices. These have no offset. Offset is recomputed
119  // based on the cursor, so that the center of the cursor has the same
120  // location in transformed space as it does in physical space.
124 
125 private:
127  void operator=(const vtkResliceCursorLineRepresentation&); //Not implemented
128 };
129 
130 #endif