GlBox (const Coord &position, const Size &size, const Color &color)
GlBox (Coord points[8], const Color &color)
GlBox (const Coord &frontTopLeft, const Coord &backBottomRight, const Color &color)
virtual ~GlBox ()
virtual void draw (float lod, Camera *camera)
void setSize (const Size &size)
void setPosition (const Coord &position)
Size * getSize () const
virtual void translate (const Coord &mouvement)
virtual void getXML (xmlNodePtr rootNode)
virtual void setWithXML (xmlNodePtr rootNode)
Protected Member Functions
void computePoints ()
void computeFaces ()
Protected Attributes
Coord * position
Color * color
Size * size
Coord * points [N_BOX_POINTS]
GlPolygon * faces [N_BOX_FACES]
Detailed Description
General class used to render boxes as GlEntity.
This class is a generic class to render boxes as GlEntity.
Constructor & Destructor Documentation
tlp::GlBox::GlBox ()The default constructor
Attention:
It's usage is forbidden.
tlp::GlBox::GlBox (const Coord & position, const Size & size, const Color & color)Constructor from size
Parameters:
position The center of the box.
size The length of each dimension of the box.
color The color of the box.
tlp::GlBox::GlBox (Coord points[8], const Color & color)Constructor from points
Parameters:
points Each point of the box. c.f. the variable 'points' to know the placement.
color The color of the box.
tlp::GlBox::GlBox (const Coord & frontTopLeft, const Coord & backBottomRight, const Color & color)Constructor from bounding box
Parameters:
frontTopLeft The position of the point at the front-top-left of the box (points[0]).
backbottomRight The position of the point at the back-bottom-right of the box (points[6]).
color The color of the box.