#include <MbsInline.hh>
|
| MbsInline (std::string cad_file, glm::vec3 const &color, MbsWorld3D *world_3d, float transparency=1.0, glm::vec3 const &trans_pos=glm::vec3(0.0f), glm::vec3 const &trans_scale=glm::vec3(1.0, 1.0, 1.0), glm::vec3 const &trans_rot=glm::vec3(0.0f), float shiny_mat=250.f, glm::vec3 const &specular_mat=glm::vec3(1.0f, 1.0f, 1.0f), const char *name="none") |
| constructor More...
|
|
virtual | ~MbsInline () |
| destructor More...
|
|
|
bool | LoadSTL (std::string cad_file, glm::vec3 color) |
| load a .stl file (interface) More...
|
|
bool | LoadOBJ (std::string cad_file, std::string dir_file) |
| load a .obj file (interface) More...
|
|
◆ MbsInline()
MbsInline |
( |
std::string |
cad_file, |
|
|
glm::vec3 const & |
color, |
|
|
MbsWorld3D * |
world_3d, |
|
|
float |
transparency = 1.0 , |
|
|
glm::vec3 const & |
trans_pos = glm::vec3(0.0f) , |
|
|
glm::vec3 const & |
trans_scale = glm::vec3(1.0, 1.0, 1.0) , |
|
|
glm::vec3 const & |
trans_rot = glm::vec3(0.0f) , |
|
|
float |
shiny_mat = 250.f , |
|
|
glm::vec3 const & |
specular_mat = glm::vec3(1.0f, 1.0f, 1.0f) , |
|
|
const char * |
name = "none" |
|
) |
| |
constructor
- Parameters
-
[in] | cad_file | CAD file to read (with path) |
[in] | color | color of the shape (used for STL file only) |
[in] | world_3d | 3D world |
[in] | transparency | transparency value |
[in] | trans_pos | position transformation to apply |
[in] | trans_scale | scaling transformation to apply |
[in] | trans_rot | rotation transformation to apply |
[in] | shiny_mat | shininess of the material |
[in] | specular_mat | specular reflection of the material |
[in] | name | name of the shape |
◆ ~MbsInline()
◆ LoadOBJ()
bool LoadOBJ |
( |
std::string |
cad_file, |
|
|
std::string |
dir_cad |
|
) |
| |
|
private |
load a .obj file (interface)
- Parameters
-
[in] | cad_file | CAD file to read (with path) |
[in] | dir_cad | directory (for .obj and .mtl) |
- Returns
- true if success, false otherwise
◆ LoadSTL()
bool LoadSTL |
( |
std::string |
cad_file, |
|
|
glm::vec3 |
color |
|
) |
| |
|
private |
load a .stl file (interface)
Load a STL file using the pars_stl 3rd party library and add it to this world
- Parameters
-
[in] | cad_file | CAD file to read (with path) |
[in] | color | the color to give to the shape |
- Returns
- true if success, false otherwise
The documentation for this class was generated from the following files:
- mbs_common/mbs_realtime/open_gl/shapes/specific/MbsInline.hh
- mbs_common/mbs_realtime/open_gl/shapes/specific/MbsInline.cc