Robotran C Documentation
MbsInline.hh
Go to the documentation of this file.
1 
6 #ifndef _MBS_INLINE_HH_
7 #define _MBS_INLINE_HH_
8 
9 #include "MbsShape3D.hh"
10 
11 namespace OpenGLMbs{
12 
13 class MbsInline: public MbsShape3D
14 {
15  public:
16  MbsInline(std::string cad_file,glm::vec3 const& color,
17  MbsWorld3D *world_3d,
18  float transparency = 1.0,
19  glm::vec3 const& trans_pos = glm::vec3(0.0f),
20  glm::vec3 const& trans_scale = glm::vec3(1.0, 1.0, 1.0),
21  glm::vec3 const& trans_rot = glm::vec3(0.0f),
22  float shiny_mat = 250.f,
23  glm::vec3 const& specular_mat = glm::vec3(1.0f, 1.0f, 1.0f),
24  const char* name = "none");
25  virtual ~MbsInline();
26 
27  private:
28  // STL
29  bool LoadSTL(std::string cad_file, glm::vec3 color);
30  // OBJ
31  bool LoadOBJ(std::string cad_file, std::string dir_file);
32 };
33 
34 }
35 #endif
OpenGLMbs::MbsInline::LoadOBJ
bool LoadOBJ(std::string cad_file, std::string dir_file)
load a .obj file (interface)
Definition: MbsInline.cc:160
OpenGLMbs::MbsInline::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
Definition: MbsInline.cc:32
OpenGLMbs
Definition: MpegFrameCaptureOptions.hh:6
parse_stl.h
VrmlLoader.hh
A basic loader for VRML2.0/VRML97 files.
MbsShape3D.hh
MbsShape3D class.
stl::stl_data
Definition: parse_stl.h:29
MbsInline.hh
MbsInline class.
OpenGLMbs::int_in_range
bool int_in_range(int x, int min, int max)
check if integer is in range
Definition: MbsInline.cc:17
stl::parse_stl
stl_data parse_stl(const std::string &stl_path)
Definition: parse_stl.cpp:39
OpenGLMbs::MbsInline::LoadSTL
bool LoadSTL(std::string cad_file, glm::vec3 color)
load a .stl file (interface)
Definition: MbsInline.cc:129
MbsShape3D
tiny_obj_loader.h
stl::stl_data::triangles
std::vector< triangle > triangles
Definition: parse_stl.h:31
OpenGLMbs::MbsInline
Definition: MbsInline.hh:13
OpenGLMbs::MbsInline::~MbsInline
virtual ~MbsInline()
destructor
Definition: MbsInline.cc:115