vtkInteractorStyleImage.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00061 #ifndef __vtkInteractorStyleImage_h
00062 #define __vtkInteractorStyleImage_h
00063
00064 #include "vtkInteractorStyleTrackballCamera.h"
00065
00066
00067
00068 #define VTKIS_WINDOW_LEVEL 1024
00069 #define VTKIS_PICK 1025
00070
00071 class VTK_RENDERING_EXPORT vtkInteractorStyleImage : public vtkInteractorStyleTrackballCamera
00072 {
00073 public:
00074 static vtkInteractorStyleImage *New();
00075 vtkTypeRevisionMacro(vtkInteractorStyleImage, vtkInteractorStyleTrackballCamera);
00076 void PrintSelf(ostream& os, vtkIndent indent);
00077
00079
00080 vtkGetVector2Macro(WindowLevelStartPosition,int);
00081 vtkGetVector2Macro(WindowLevelCurrentPosition,int);
00083
00085
00087 virtual void OnMouseMove();
00088 virtual void OnLeftButtonDown();
00089 virtual void OnLeftButtonUp();
00090 virtual void OnRightButtonDown();
00091 virtual void OnRightButtonUp();
00093
00095 virtual void OnChar();
00096
00097
00098
00099
00100
00101 virtual void WindowLevel();
00102 virtual void Pick();
00103
00104
00105 virtual void StartWindowLevel();
00106 virtual void EndWindowLevel();
00107 virtual void StartPick();
00108 virtual void EndPick();
00109
00110 protected:
00111 vtkInteractorStyleImage();
00112 ~vtkInteractorStyleImage();
00113
00114 int WindowLevelStartPosition[2];
00115 int WindowLevelCurrentPosition[2];
00116
00117 private:
00118 vtkInteractorStyleImage(const vtkInteractorStyleImage&);
00119 void operator=(const vtkInteractorStyleImage&);
00120 };
00121
00122 #endif