Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef __SVTK_KeyFreeInteractorStyle_h
00027 #define __SVTK_KeyFreeInteractorStyle_h
00028
00029
00030 #include "SVTK.h"
00031
00032 #include "SVTK_InteractorStyle.h"
00033
00035 class SVTK_EXPORT SVTK_KeyFreeInteractorStyle : public SVTK_InteractorStyle
00036 {
00037 public:
00038 static SVTK_KeyFreeInteractorStyle *New();
00039 vtkTypeMacro(SVTK_KeyFreeInteractorStyle,SVTK_InteractorStyle);
00040
00041 protected:
00042 SVTK_KeyFreeInteractorStyle();
00043 ~SVTK_KeyFreeInteractorStyle();
00044
00045 SVTK_KeyFreeInteractorStyle(const SVTK_KeyFreeInteractorStyle&);
00046 void operator=(const SVTK_KeyFreeInteractorStyle&);
00047
00048
00049
00051 virtual void OnLeftButtonDown(int ctrl, int shift, int x, int y);
00052
00054 virtual void OnMiddleButtonDown(int ctrl, int shift, int x, int y);
00055
00057 virtual void OnLeftButtonUp(int ctrl, int shift, int x, int y);
00058
00060 virtual void OnMiddleButtonUp(int ctrl, int shift, int x, int y);
00061
00063 virtual void OnChar();
00064
00065 bool myIsMidButtonDown;
00066 bool myIsLeftButtonDown;
00067 };
00068
00069 #endif