Robotran C Documentation
Public Member Functions | Private Attributes | List of all members
MbsSphere Class Reference

#include <MbsSphere.hh>

Inheritance diagram for MbsSphere:
MbsShape3D

Public Member Functions

 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 More...
 
virtual ~MbsSphere ()
 destructor More...
 

Private Attributes

double r
 radius [m] More...
 

Constructor & Destructor Documentation

◆ 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

Parameters
[in]rradius [m]
[in]colorcolor of the shape
[in]world_3d3D world
[in]transparencytransparency value
[in]trans_posposition transformation to apply
[in]trans_scalescaling transformation to apply
[in]trans_rotrotation transformation to apply
[in]shiny_matshininess of the material
[in]specular_matspecular reflection of the material
[in]namename of the shape

◆ ~MbsSphere()

~MbsSphere ( )
virtual

destructor

Member Data Documentation

◆ r

double r
private

radius [m]


The documentation for this class was generated from the following files: