Robotran C Documentation
MbsBox.hh
Go to the documentation of this file.
1 
6 #ifndef _MBS_BOX_HH_
7 #define _MBS_BOX_HH_
8 
9 #include "MbsShape3D.hh"
10 
11 namespace OpenGLMbs{
12 
13 class MbsBox: public MbsShape3D
14 {
15  public:
16  MbsBox(double d, double w, double h, 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 ~MbsBox();
26 
27  private:
28  double d;
29  double w;
30  double h;
31 };
32 
33 }
34 #endif
OpenGLMbs
Definition: MpegFrameCaptureOptions.hh:6
OpenGLMbs::MbsBox::h
double h
height (size along the Z axis) [m]
Definition: MbsBox.hh:30
MbsShape3D.hh
MbsShape3D class.
MbsBox.hh
MbsBox class.
OpenGLMbs::tmp_coord_box
GLfloat tmp_coord_box[3 *NB_TRIANGLES_INIT]
Definition: MbsBox.cc:21
NB_VERTICES_INIT
#define NB_VERTICES_INIT
initial number of vertices
Definition: MbsBox.cc:5
OpenGLMbs::MbsBox::d
double d
depth (size along the X axis) [m]
Definition: MbsBox.hh:28
OpenGLMbs::MbsBox::MbsBox
MbsBox(double d, double w, double h, 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: MbsBox.cc:51
NB_TRIANGLES_INIT
#define NB_TRIANGLES_INIT
initial number of triangles
Definition: MbsBox.cc:6
OpenGLMbs::MbsBox
Definition: MbsBox.hh:13
MbsShape3D
OpenGLMbs::MbsBox::w
double w
width (size along the Y axis) [m]
Definition: MbsBox.hh:29
OpenGLMbs::tmp_vert_box
GLdouble tmp_vert_box[3 *NB_VERTICES_INIT]
Definition: MbsBox.cc:9
OpenGLMbs::MbsBox::~MbsBox
virtual ~MbsBox()
destructor
Definition: MbsBox.cc:85