Robotran C Documentation
OglViewPointRenderer.hh
Go to the documentation of this file.
1 
7 #ifndef OGL_VIEWPOINT_RENDERER
8 #define OGL_VIEWPOINT_RENDERER
9 
10 #include <glew.h>
11 
12 #include "MbsViewPointRenderer.hh"
13 
14 namespace OpenGLMbs{
15 
16 //forward declaration
17 class MbsWorld3D;
18 class MbsViewPoint;
19 
25 {
26  public:
27  OglViewPointRenderer(MbsWorld3D *w3d, GLenum format = GL_RGB);
29 
31  virtual void Render();
32 
35  virtual void GetImagePixels(unsigned char* image, int width, int height);
36 
37  virtual MbsViewPoint* GetViewpoint();
38 
39  virtual int GetWidth();
40  virtual int GetHeight();
41 
42  protected:
43  MbsWorld3D *world_3d;
44  GLenum format;
45 
46 }; // class OglViewPointRenderer
47 
48 
49 } // namespace OpenGLMbs
50 
51 
52 #endif // OGL_VIEWPOINT_RENDERER
53 
OpenGLMbs
Definition: MpegFrameCaptureOptions.hh:6
OpenGLMbs::OglViewPointRenderer::GetViewpoint
virtual MbsViewPoint * GetViewpoint()
Definition: OglViewPointRenderer.cc:32
MbsWorld3D.hh
MbsWorld3D class.
OglViewPointRenderer.hh
OglViewPointRenderer class.
OpenGLMbs::OglViewPointRenderer::format
GLenum format
format to store the pixels
Definition: OglViewPointRenderer.hh:44
MbsViewPointRenderer.hh
MbsViewPointRenderer class.
OpenGLMbs::OglViewPointRenderer::Render
virtual void Render()
Render the current viewpoint renderer.
Definition: OglViewPointRenderer.cc:36
OpenGLMbs::MbsViewPointRenderer
abstract class for specifying code to render the 3D scene to an image from a specific viepoint.
Definition: MbsViewPointRenderer.hh:17
OpenGLMbs::OglViewPointRenderer::world_3d
MbsWorld3D * world_3d
3D world
Definition: OglViewPointRenderer.hh:43
OpenGLMbs::OglViewPointRenderer::OglViewPointRenderer
OglViewPointRenderer(MbsWorld3D *w3d, GLenum format=GL_RGB)
Definition: OglViewPointRenderer.cc:13
OpenGLMbs::OglViewPointRenderer::~OglViewPointRenderer
~OglViewPointRenderer()
Definition: OglViewPointRenderer.cc:28
OpenGLMbs::OglViewPointRenderer::GetWidth
virtual int GetWidth()
Definition: OglViewPointRenderer.cc:55
OpenGLMbs::OglViewPointRenderer
implementation of a MbsViewPointRenderer using OpenGL to render directly to the screen
Definition: OglViewPointRenderer.hh:24
OpenGLMbs::OglViewPointRenderer::GetHeight
virtual int GetHeight()
Definition: OglViewPointRenderer.cc:59
OpenGLMbs::OglViewPointRenderer::GetImagePixels
virtual void GetImagePixels(unsigned char *image, int width, int height)
Copy the image data associated to this renderer in the given image buffer.
Definition: OglViewPointRenderer.cc:51