CBox Class Reference

Cubic base component of geometry model. More...

#include <robot.h>

List of all members.

Public Member Functions

 CBox ()
 ~CBox ()
 CBox (float pos_x, float pos_y, float pos_z, float width, float depth, float height, CFrame *transformation, float mass=0.1)
void set (float pos_x, float pos_y, float pos_z, float width, float depth, float height, CFrame *transformation, float mass=0.1)

Static Public Member Functions

static bool xmlToBox (CBox *box, TiXmlElement *boxNode, CRobot *robot)
 Transforms a <BOX> (xml object) into a CBox.
static bool xmlToColor (CVec &color, TiXmlElement *colorNode)
 Transforms a <COLOR> (xml object) into a vector of rgb values.

Public Attributes

CVec center
 Center of cube in local frame.
CVec extents
 Extents of cube in x-, y- and z-direction.
CVec color
 Color associated with cube (xyz = rgb).
CFrameframe
 Local frame of cube (might be attached to a link joint).
CMatrixrot
 Homogenous transformation of box in local frame.
float mass
 Mass associated with the cube.
char name [256]
 Name of body part the box belongs to.


Detailed Description

Cubic base component of geometry model.


Constructor & Destructor Documentation

CBox::CBox (  ) 

CBox::~CBox (  ) 

CBox::CBox ( float  pos_x,
float  pos_y,
float  pos_z,
float  width,
float  depth,
float  height,
CFrame transformation,
float  mass = 0.1 
)


Member Function Documentation

void CBox::set ( float  pos_x,
float  pos_y,
float  pos_z,
float  width,
float  depth,
float  height,
CFrame transformation,
float  mass = 0.1 
)

bool CBox::xmlToBox ( CBox box,
TiXmlElement *  boxNode,
CRobot robot 
) [static]

Transforms a <BOX> (xml object) into a CBox.

bool CBox::xmlToColor ( CVec color,
TiXmlElement *  colorNode 
) [static]

Transforms a <COLOR> (xml object) into a vector of rgb values.


Member Data Documentation

CVec CBox::center

Center of cube in local frame.

CVec CBox::extents

Extents of cube in x-, y- and z-direction.

CVec CBox::color

Color associated with cube (xyz = rgb).

CFrame* CBox::frame

Local frame of cube (might be attached to a link joint).

CMatrix* CBox::rot

Homogenous transformation of box in local frame.

float CBox::mass

Mass associated with the cube.

char CBox::name[256]

Name of body part the box belongs to.


The documentation for this class was generated from the following files:
Generated on Mon Apr 21 23:27:43 2008 for BioloidControl by  doxygen 1.5.2