|
Robotran C Documentation
|
Go to the documentation of this file.
8 #ifndef _OGL_WORLD_RENDERER_HH_
9 #define _OGL_WORLD_RENDERER_HH_
21 class OglViewPointRenderer;
40 virtual void Update(std::vector<MbsShape3D*> model_list);
50 virtual void AddDepthTexture(
int new_depth_x_width,
int new_depth_y_width);
104 #endif //_OGL_WORLD_RENDERER_HH_
std::vector< int > depth_x_width
X width of the shadow map depth textures (in pixels)
Definition: OglWorldRenderer.hh:93
OglShapeRenderer class is an implementation of MbsShapeRenderer that render a MbsShape3D using Open G...
Definition: OglShapeRenderer.hh:76
void SetShader()
Definition: OglWorldRenderer.cc:147
OglWorldRenderer(MbsWorld3D *world_3d, int shader_flag)
Constructor.
Definition: OglWorldRenderer.cc:31
Definition: MpegFrameCaptureOptions.hh:6
Implementation of MbsWorldRenderer class that render a MbsWorld3D using Open GL.
Definition: OglWorldRenderer.hh:26
std::vector< int > depth_y_width
X width of the shadow map depth textures (in pixels)
Definition: OglWorldRenderer.hh:94
OglViewPointRenderer class.
std::string fragment_file
Definition: OglWorldRenderer.hh:74
std::vector< MbsViewPointRenderer * > vp_renderer_vec
Viewpoint renderer vector: contain all the view point renderers.
Definition: OglWorldRenderer.hh:70
std::string vertex_file
Definition: OglWorldRenderer.hh:73
virtual void AddDepthTexture(int new_depth_x_width, int new_depth_y_width)
add a depth texture
Definition: OglWorldRenderer.cc:198
abstract class for specifying code to render the 3D scene to an image from a specific viepoint.
Definition: MbsViewPointRenderer.hh:17
virtual void Update(std::vector< MbsShape3D * > model_list)
Execute the necessary code to render this world: Update the append filter and output the vtu file for...
Definition: OglWorldRenderer.cc:88
std::string main_vert_sh
main vertex shader path
Definition: OglWorldRenderer.hh:86
virtual void SetBackgroundColor(glm::vec3 const &col)
Set the backgroun of the Open GL view to the specified color.
Definition: OglWorldRenderer.cc:184
virtual void Init()
Execute the necessary code to initialize the renderer Here: initialize Open GL context.
Definition: OglWorldRenderer.cc:48
MbsWorld3D * world_3d
3D world
Definition: OglWorldRenderer.hh:76
OglOffscreenVpRenderer class.
OglShapeRenderer class and utilities.
MbsShapeRenderer is an abstract class that defines the property need to render a MbsShape3D....
Definition: MbsShapeRenderer.hh:29
MbsWorldRenderer class defines the general properties of an object that renders a MbsWorld3D....
Definition: MbsWorldRenderer.hh:31
int shader_flag
flag for shaders
Definition: OglWorldRenderer.hh:82
implementation of a MbsViewPointRenderer using OpenGL to render directly to the screen
Definition: OglViewPointRenderer.hh:24
int GetDepthXWidth(int i) const
get the depth texture width along the X axis (in pixels)
Definition: OglWorldRenderer.hh:64
GLuint GetDepthTexture(int i) const
get a depth texture
Definition: OglWorldRenderer.hh:58
GLuint GetFrameBuffer(int i) const
get a frame buffer
Definition: OglWorldRenderer.hh:61
std::string main_frag_sh
main fragment shader path
Definition: OglWorldRenderer.hh:87
bool is_init
Definition: OglWorldRenderer.hh:80
glm::vec3 background_color
Definition: OglWorldRenderer.hh:78
virtual void AddViewPointRenderer(MbsViewPointRenderer *rdr)
Definition: OglWorldRenderer.cc:130
int GetDepthYWidth(int i) const
get the depth texture width along the Y axis (in pixels)
Definition: OglWorldRenderer.hh:67
int GetNbDepthTextures() const
get the number of depth textures
Definition: OglWorldRenderer.hh:55
virtual MbsShapeRenderer * getNewShapeRenderer()
Create and return a new renderer for shape (similar to a factory production method)
Definition: OglWorldRenderer.cc:140
std::vector< GLuint > depthTexture
depth textures
Definition: OglWorldRenderer.hh:91
std::vector< GLuint > frameBuffer
frame buffer
Definition: OglWorldRenderer.hh:90