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