MbsShapeRenderer is an abstract class that defines the property need to render a MbsShape3D. Three implementation are currently available:
More...
#include <MbsShapeRenderer.hh>
|
virtual | ~MbsShapeRenderer () |
| Destructor. More...
|
|
virtual void | Init (std::vector< glm::vec3 > vertices, std::vector< glm::vec3 > colors, std::vector< glm::vec3 > normals, std::vector< unsigned int > indexes)=0 |
| Init the current shape renderer. More...
|
|
virtual void | Update (glm::mat4 model_mat, glm::mat4 MVP, glm::mat3 M_inv_trans, MbsWorld3D *world_3d, float shiny_mat, glm::vec3 const &specular_mat, float transparency)=0 |
| Execute the necessary code to render this shape. More...
|
|
virtual void | ShadowDepth (int index)=0 |
|
virtual void | SetModelMat (glm::mat4 const &model_mat)=0 |
|
MbsShapeRenderer is an abstract class that defines the property need to render a MbsShape3D. Three implementation are currently available:
- DefaultShapeRender: do nothing
- OglShapeRender: render with openGL
- VtkShapeRender: manage the shape to output it to a VTK/ParaView file
◆ ~MbsShapeRenderer()
◆ Init()
virtual void Init |
( |
std::vector< glm::vec3 > |
vertices, |
|
|
std::vector< glm::vec3 > |
colors, |
|
|
std::vector< glm::vec3 > |
normals, |
|
|
std::vector< unsigned int > |
indexes |
|
) |
| |
|
pure virtual |
◆ SetModelMat()
virtual void SetModelMat |
( |
glm::mat4 const & |
model_mat | ) |
|
|
pure virtual |
◆ ShadowDepth()
virtual void ShadowDepth |
( |
int |
index | ) |
|
|
pure virtual |
◆ Update()
virtual void Update |
( |
glm::mat4 |
model_mat, |
|
|
glm::mat4 |
MVP, |
|
|
glm::mat3 |
M_inv_trans, |
|
|
MbsWorld3D * |
world_3d, |
|
|
float |
shiny_mat, |
|
|
glm::vec3 const & |
specular_mat, |
|
|
float |
transparency |
|
) |
| |
|
pure virtual |
The documentation for this class was generated from the following file: