Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
OnlyRotationControl.hh
1 #ifndef __OnlyRotationControl_HH__
2 #define __OnlyRotationControl_HH__
3 
4 #include <bias_config.h>
5 
6 #include <GLviewer/Controller/ControlInterface.hh>
7 #include <Base/Math/Vector3.hh>
8 
9 namespace BIAS {
10  /**
11  \class OnlyRotationControl
12  \author haase
13  \ingroup g_glviewer
14  \brief class for camera movement in fixed position, only rotation mode.
15  */
16  class BIASGLviewer_EXPORT OnlyRotationControl : public ControlInterface
17  {
18  public:
20  /**
21  performs a up/down (pitch) rotation (mouse moving up-down) for animations without
22  changing the viewport position,steps of 0.1 degree by now
23  **/
24  bool RightMouseMoved(int x1, int x2, int y1, int y2);
25 
26 
27  /**
28  performs a left/right (yaw) rotation (mouse moving left-right) for animations without
29  changing the viewport
30  position,steps of 1 degree by now
31  **/
32  bool LeftMouseMoved(int x1, int x2, int y1, int y2);
33 
34  /**
35  performs a left/right (roll) rotation (mouse moving left-right) for animations without
36  changing the viewport
37  position,steps of 1 degree by now
38  **/
39  bool MiddleMouseMoved(int x1, int x2, int y1, int y2);
40 
41  /**
42  performs a reset for (roll) rotation without
43  changing the viewport position
44  **/
45  bool LeftMouseDoubleClicked(int x, int y);
46 
47  /**
48  performs a minimal changing of the viewport position
49  **/
50  bool LeftAndRightMouseMoved(int x1, int x2, int y1, int y2);
51 
52  /**
53  performs an invert of up vector -to correct vrml scenes
54  **/
55  bool RightMouseDoubleClicked(int /*x*/, int /*y*/);
56 
57  protected:
58  };
59 }//end of namespace
60 #endif
class for camera movement in fixed position, only rotation mode.
Defines the common interface used for communication between rendering components. ...