Robotran C Documentation
GlfwViewPointMouseManager.hh
Go to the documentation of this file.
1 
6 #ifdef OPEN_GL
7 
8 #ifndef _MBS_VIEW_POINT_MOUSE_HH_
9 #define _MBS_VIEW_POINT_MOUSE_HH_
10 
11 #include "MbsViewPoint.hh"
12 
13 
14 // forward declaration
15 struct GLFWwindow;
16 class MbsWorld3D;
17 
18 namespace OpenGLMbs{
19 
27 class GlfwViewPointMouseManager
28 {
29  public:
30  GlfwViewPointMouseManager(MbsWorld3D* world, GLFWwindow *win);
31  virtual ~GlfwViewPointMouseManager();
32 
33  virtual void Update(MbsViewPoint *curVp);
34 
35  private:
36  int state;
37 
38  double init_x;
39  double init_y;
40 
41  float move_fact;
42  float zoom_fact;
43  float scroll_fact;
44 
45  double scroll_time;
46 
47  double last_y_scroll;
48  double t_rise_y_scroll;
49 
50  GLFWwindow *win;
51  MbsWorld3D* world_3d;
52 
53 };
54 
55 }
56 #endif
57 #endif
OpenGLMbs
Definition: MpegFrameCaptureOptions.hh:6
MbsWorld3D.hh
MbsWorld3D class.
GlfwViewPointMouseManager.hh
MbsViewPointMouse class.
MbsViewPoint.hh
MbsViewPoint class.