Robotran C Documentation
DefaultWindowManager.hh
Go to the documentation of this file.
1 
8 #ifndef _DEFAULT_WINDOW_MANAGER_HH_
9 #define _DEFAULT_WINDOW_MANAGER_HH_
10 
11 
12 namespace OpenGLMbs{
13 
14 // forward declaration
15 class MbsViewPoint;
16 class MbsWorld3D;
17 
18 
25 {
26  public:
27 
29  virtual void Init(MbsWorld3D* world, int x_width, int y_width, int multi_samp){};
30 
32  virtual void SwapBuffers(){};
33 
35  virtual double GetTime(){return 0.;}
36 
38  virtual void Terminate(){}
39 
41  virtual int CheckClose(){return 0;}
42 
44  virtual bool Update(){return false;}
45 
47  virtual void PollEvents(){}
48 
50  virtual void UpdateViewPoint(MbsViewPoint *curVp){}
51 
53  virtual int GetXWidth() { return 10; }
54 
56  virtual int GetYWidth() { return 10; }
57 };
58 
59 
60 } // close namespace
61 
62 
63 
64 #endif //_DEFAULT_WINDOW_MANAGER_HH_
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::DefaultWindowManager::SwapBuffers
virtual void SwapBuffers()
Definition: DefaultWindowManager.hh:32
OpenGLMbs::DefaultWindowManager
DefaultWindowManager is a default implementation of MbsWindowManager that do nothing....
Definition: DefaultWindowManager.hh:24
OpenGLMbs::DefaultWindowManager::GetXWidth
virtual int GetXWidth()
get the width along the X axis (in pixels)
Definition: DefaultWindowManager.hh:53
OpenGLMbs::DefaultWindowManager::Terminate
virtual void Terminate()
Definition: DefaultWindowManager.hh:38
OpenGLMbs::DefaultWindowManager::UpdateViewPoint
virtual void UpdateViewPoint(MbsViewPoint *curVp)
Definition: DefaultWindowManager.hh:50
OpenGLMbs::DefaultWindowManager::GetTime
virtual double GetTime()
Definition: DefaultWindowManager.hh:35
OpenGLMbs::DefaultWindowManager::PollEvents
virtual void PollEvents()
Definition: DefaultWindowManager.hh:47
OpenGLMbs::DefaultWindowManager::GetYWidth
virtual int GetYWidth()
get the width along the X axis (in pixels)
Definition: DefaultWindowManager.hh:56
OpenGLMbs::DefaultWindowManager::CheckClose
virtual int CheckClose()
Definition: DefaultWindowManager.hh:41
OpenGLMbs::DefaultWindowManager::Init
virtual void Init(MbsWorld3D *world, int x_width, int y_width, int multi_samp)
Init the current shape renderer.
Definition: DefaultWindowManager.hh:29
OpenGLMbs::DefaultWindowManager::Update
virtual bool Update()
Update the window for the current frame Return true if the windows size has changed since the previou...
Definition: DefaultWindowManager.hh:44