Robotran C Documentation
GlfwWindowManager.hh
Go to the documentation of this file.
1 
7 #ifndef _GLFW_WINDOW_MANAGER_HH_
8 #define _GLFW_WINDOW_MANAGER_HH_
9 
10 #include "MbsWindowManager.hh"
11 
12 // forward declaration
13 struct GLFWwindow;
14 
15 
16 namespace OpenGLMbs{
17 
18 // forward declaration
19 class MbsViewPoint;
20 class GlfwViewPointMouseManager;
21 class MbsWorld3D;
22 
23 
24 
29 {
30  public:
31 
33  virtual void Init(MbsWorld3D* world, int x_width, int y_width, int multi_samp);
34 
36  virtual void SwapBuffers();
37 
39  virtual double GetTime();
40 
42  virtual void Terminate();
43 
45  virtual int CheckClose();
46 
48  virtual bool Update();
49 
51  virtual void PollEvents();
52 
54  virtual void UpdateViewPoint(MbsViewPoint *curVp);
55 
57  virtual int GetXWidth() { return x_width; }
58 
60  virtual int GetYWidth() { return y_width; }
61 
62  private:
63  MbsWorld3D* world;
64 
65  GLFWwindow *win;
66 
67  int x_width;
68  int y_width;
69 
70  GlfwViewPointMouseManager* vpManager;
71 
72 };
73 
74 
75 } // close namespace
76 
77 
78 
79 #endif //_GLFW_WINDOW_MANAGER_HH_
OpenGLMbs::GlfwWindowManager::Init
virtual void Init(MbsWorld3D *world, int x_width, int y_width, int multi_samp)
Init the current GlfwWindowManager.
Definition: GlfwWindowManager.cc:18
OpenGLMbs
Definition: MpegFrameCaptureOptions.hh:6
OpenGLMbs::MbsWindowManager
MbsWindowManager is an abstract class that defines the functionalities of a window manager.
Definition: MbsWindowManager.hh:22
OpenGLMbs::GlfwWindowManager::y_width
int y_width
screen width along the Y axis (in pixels)
Definition: GlfwWindowManager.hh:68
OpenGLMbs::GlfwWindowManager::CheckClose
virtual int CheckClose()
Definition: GlfwWindowManager.cc:73
GlfwViewPointMouseManager.hh
MbsViewPointMouse class.
OpenGLMbs::GlfwWindowManager::SwapBuffers
virtual void SwapBuffers()
Definition: GlfwWindowManager.cc:57
OpenGLMbs::GlfwWindowManager::Update
virtual bool Update()
Update the window for the current frame Return true if the windows size has changed since the previou...
Definition: GlfwWindowManager.cc:78
MbsWindowManager.hh
MbsWindowManager class.
OpenGLMbs::GlfwWindowManager::x_width
int x_width
screen width along the X axis (in pixels)
Definition: GlfwWindowManager.hh:67
GlfwWindowManager.hh
GlfwWindowManager class.
OpenGLMbs::GlfwWindowManager::GetXWidth
virtual int GetXWidth()
get the width along the X axis (in pixels)
Definition: GlfwWindowManager.hh:57
OpenGLMbs::GlfwWindowManager::win
GLFWwindow * win
main visualizatin window
Definition: GlfwWindowManager.hh:65
OpenGLMbs::GlfwWindowManager::GetYWidth
virtual int GetYWidth()
get the width along the X axis (in pixels)
Definition: GlfwWindowManager.hh:60
OpenGLMbs::GlfwWindowManager
Implements a MbsWindowManager using the GLFW library. It may be used in association with OglWorldRend...
Definition: GlfwWindowManager.hh:28
OpenGLMbs::GlfwWindowManager::PollEvents
virtual void PollEvents()
Definition: GlfwWindowManager.cc:98
OpenGLMbs::GlfwWindowManager::vpManager
GlfwViewPointMouseManager * vpManager
Definition: GlfwWindowManager.hh:70
OpenGLMbs::GlfwWindowManager::GetTime
virtual double GetTime()
Definition: GlfwWindowManager.cc:62
OpenGLMbs::GlfwWindowManager::world
MbsWorld3D * world
Definition: GlfwWindowManager.hh:63
OpenGLMbs::GlfwWindowManager::Terminate
virtual void Terminate()
Definition: GlfwWindowManager.cc:67
OpenGLMbs::GlfwWindowManager::UpdateViewPoint
virtual void UpdateViewPoint(MbsViewPoint *curVp)
Definition: GlfwWindowManager.cc:103