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

#include <MbsCylinder.hh>

Inheritance diagram for MbsCylinder:
MbsShape3D

Public Member Functions

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

Private Attributes

double r
 radius [m] More...
 
double h
 height [m] More...
 

Constructor & Destructor Documentation

◆ 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

Parameters
[in]rradius [m]
[in]hheight [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

◆ ~MbsCylinder()

~MbsCylinder ( )
virtual

destructor

Member Data Documentation

◆ h

double h
private

height [m]

◆ r

double r
private

radius [m]


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