Rendering/vtkInteractorStyleImage.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00049 #ifndef __vtkInteractorStyleImage_h
00050 #define __vtkInteractorStyleImage_h
00051
00052 #include "vtkInteractorStyleTrackballCamera.h"
00053
00054
00055
00056 #define VTKIS_WINDOW_LEVEL 1024
00057 #define VTKIS_PICK 1025
00058
00059 class VTK_RENDERING_EXPORT vtkInteractorStyleImage : public vtkInteractorStyleTrackballCamera
00060 {
00061 public:
00062 static vtkInteractorStyleImage *New();
00063 vtkTypeRevisionMacro(vtkInteractorStyleImage, vtkInteractorStyleTrackballCamera);
00064 void PrintSelf(ostream& os, vtkIndent indent);
00065
00067
00068 vtkGetVector2Macro(WindowLevelStartPosition,int);
00069 vtkGetVector2Macro(WindowLevelCurrentPosition,int);
00071
00073
00075 virtual void OnMouseMove();
00076 virtual void OnLeftButtonDown();
00077 virtual void OnLeftButtonUp();
00078 virtual void OnRightButtonDown();
00079 virtual void OnRightButtonUp();
00081
00083 virtual void OnChar();
00084
00085
00086
00087
00088
00089 virtual void WindowLevel();
00090 virtual void Pick();
00091
00092
00093 virtual void StartWindowLevel();
00094 virtual void EndWindowLevel();
00095 virtual void StartPick();
00096 virtual void EndPick();
00097
00098 protected:
00099 vtkInteractorStyleImage();
00100 ~vtkInteractorStyleImage();
00101
00102 int WindowLevelStartPosition[2];
00103 int WindowLevelCurrentPosition[2];
00104
00105 private:
00106 vtkInteractorStyleImage(const vtkInteractorStyleImage&);
00107 void operator=(const vtkInteractorStyleImage&);
00108 };
00109
00110 #endif