Robotran C Documentation
MbsWorldRenderer.hh
Go to the documentation of this file.
1 
8 #ifndef _MBS_WORLD_RENDERER_HH_
9 #define _MBS_WORLD_RENDERER_HH_
10 
11 
12 #include <glm.hpp>
13 #include <vector>
14 
15 
16 namespace OpenGLMbs{
17 
18 // forward declaration
19 class MbsWorld3D;
20 class MbsShape3D;
21 class MbsShapeRenderer;
22 class MbsViewPointRenderer;
23 
32 {
33  public:
34 
36  virtual ~MbsWorldRenderer(){}
37 
39  virtual void Init() = 0;
40 
42  virtual void Update(std::vector<MbsShape3D*> model_list) = 0;
43 
46 
47  virtual void SetBackgroundColor(glm::vec3 const& background_color) = 0;
48 
49  virtual void AddDepthTexture(int new_depth_x_width, int new_depth_y_width) = 0;
50 
51  virtual void AddViewPointRenderer(MbsViewPointRenderer* rdr) = 0;
52 };
53 
54 
55 } // close namespace
56 
57 #endif //_MBS_WORLD_RENDERER_HH_
OpenGLMbs
Definition: MpegFrameCaptureOptions.hh:6
OpenGLMbs::MbsWorldRenderer::SetBackgroundColor
virtual void SetBackgroundColor(glm::vec3 const &background_color)=0
OpenGLMbs::MbsWorldRenderer::~MbsWorldRenderer
virtual ~MbsWorldRenderer()
Destructor.
Definition: MbsWorldRenderer.hh:36
OpenGLMbs::MbsWorldRenderer::Update
virtual void Update(std::vector< MbsShape3D * > model_list)=0
Execute the necessary code to render this world.
OpenGLMbs::MbsViewPointRenderer
abstract class for specifying code to render the 3D scene to an image from a specific viepoint.
Definition: MbsViewPointRenderer.hh:17
OpenGLMbs::MbsWorldRenderer::getNewShapeRenderer
virtual MbsShapeRenderer * getNewShapeRenderer()=0
Create and return a new shape renderer.
OpenGLMbs::MbsShapeRenderer
MbsShapeRenderer is an abstract class that defines the property need to render a MbsShape3D....
Definition: MbsShapeRenderer.hh:29
MbsShape3D
OpenGLMbs::MbsWorldRenderer
MbsWorldRenderer class defines the general properties of an object that renders a MbsWorld3D....
Definition: MbsWorldRenderer.hh:31
OpenGLMbs::MbsWorldRenderer::AddDepthTexture
virtual void AddDepthTexture(int new_depth_x_width, int new_depth_y_width)=0
OpenGLMbs::MbsWorldRenderer::AddViewPointRenderer
virtual void AddViewPointRenderer(MbsViewPointRenderer *rdr)=0
OpenGLMbs::MbsWorldRenderer::Init
virtual void Init()=0
Execute the necessary code to render this world.