27 #ifndef vtkResliceCursorRepresentation_h
28 #define vtkResliceCursorRepresentation_h
30 #include "vtkInteractionWidgetsModule.h"
52 #define VTK_RESLICE_CURSOR_REPRESENTATION_MAX_TEXTBUFF 128
71 vtkSetClampMacro(Tolerance,
int,1,100);
72 vtkGetMacro(Tolerance,
int);
100 vtkSetStringMacro(ThicknessLabelFormat);
101 vtkGetStringMacro(ThicknessLabelFormat);
105 enum { Outside=0, NearCenter, NearAxis1, NearAxis2,
108 ResizeThickness, WindowLevelling };
113 virtual char* GetThicknessLabelText();
119 virtual double* GetThicknessLabelPosition();
120 virtual void GetThicknessLabelPosition(
double pos[3]);
121 virtual void GetWorldThicknessLabelPosition(
double pos[3]);
174 void SetWindowLevel(
double window,
double level,
int copy = 0);
175 void GetWindowLevel(
double wl[2]);
215 void SetManipulationMode(
int m );
216 vtkGetMacro(ManipulationMode,
int);
225 void ActivateText(
int);
226 void ManageTextDisplay();
234 virtual void InitializeReslicePlane();
235 virtual void ResetCamera();
260 virtual void CreateDefaultResliceAlgorithm();
261 virtual void SetResliceParameters(
262 double outputSpacingX,
double outputSpacingY,
263 int extentX,
int extentY );
269 virtual void WindowLevel(
double x,
double y );
274 virtual void UpdateReslicePlane();
279 virtual void ComputeReslicePlaneOrigin();
289 void GetVector1(
double d[3] );
290 void GetVector2(
double d[3] );
329 double LastEventPosition[2];