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