Robotran C Documentation
MbsCylinder.hh
Go to the documentation of this file.
1 
6 #ifndef _MBS_CYLINDER_HH_
7 #define _MBS_CYLINDER_HH_
8 
9 #include "MbsShape3D.hh"
10 
11 namespace OpenGLMbs{
12 
13 class MbsCylinder: public MbsShape3D
14 {
15  public:
16  MbsCylinder(double r, 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 ~MbsCylinder();
26 
27  private:
28  double r;
29  double h;
30 };
31 
32 }
33 #endif
OpenGLMbs
Definition: MpegFrameCaptureOptions.hh:6
OpenGLMbs::MbsCylinder
Definition: MbsCylinder.hh:13
OpenGLMbs::MbsCylinder::r
double r
radius [m]
Definition: MbsCylinder.hh:28
MbsShape3D.hh
MbsShape3D class.
OpenGLMbs::MbsCylinder::h
double h
height [m]
Definition: MbsCylinder.hh:29
OpenGLMbs::MbsCylinder::~MbsCylinder
virtual ~MbsCylinder()
destructor
Definition: MbsCylinder.cc:249
OpenGLMbs::tmp_coord_cylinder
GLfloat tmp_coord_cylinder[3 *NB_TRIANGLES_INIT]
Definition: MbsCylinder.cc:77
MbsCylinder.hh
MbsCylinder class.
OpenGLMbs::MbsCylinder::MbsCylinder
MbsCylinder(double r, 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: MbsCylinder.cc:218
NB_TRIANGLES_INIT
#define NB_TRIANGLES_INIT
initial number of triangles
Definition: MbsCylinder.cc:6
OpenGLMbs::tmp_vert_cylinder
GLdouble tmp_vert_cylinder[3 *NB_VERTICES_INIT]
Definition: MbsCylinder.cc:9
MbsShape3D
NB_VERTICES_INIT
#define NB_VERTICES_INIT
initial number of vertices
Definition: MbsCylinder.cc:5