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

#include <MbsBox.hh>

Inheritance diagram for MbsBox:
MbsShape3D

Public Member Functions

 MbsBox (double d, double w, 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 ~MbsBox ()
 destructor More...
 

Private Attributes

double d
 depth (size along the X axis) [m] More...
 
double w
 width (size along the Y axis) [m] More...
 
double h
 height (size along the Z axis) [m] More...
 

Constructor & Destructor Documentation

◆ MbsBox()

MbsBox ( double  d,
double  w,
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]ddepth (along X) [m]
[in]wwidth (along Y) [m]
[in]hheight (along Z) [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

◆ ~MbsBox()

~MbsBox ( )
virtual

destructor

Member Data Documentation

◆ d

double d
private

depth (size along the X axis) [m]

◆ h

double h
private

height (size along the Z axis) [m]

◆ w

double w
private

width (size along the Y axis) [m]


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