tlp::GlBox Class Reference#include <GlBox.h>
Inherits tlp::GlSimpleEntity.
Inheritance diagram for tlp::GlBox:
[legend]Collaboration diagram for tlp::GlBox:
[legend]List of all members.
Detailed Description
General class used to render boxes as GlEntity.
This class is a generic class to render boxes as GlEntity.
Public Member Functions
Protected Member Functions
Protected Attributes
Constructor & Destructor Documentation
|
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. |
|
virtual tlp::GlBox::~GlBox |
( |
|
) |
[virtual] |
|
Member Function Documentation
void tlp::GlBox::computeFaces |
( |
|
) |
[protected] |
|
|
Function used to compute the GlADQuad from the points of the box. |
void tlp::GlBox::computePoints |
( |
|
) |
[protected] |
|
|
Function used to compute the points of the box from a center and a size. |
virtual void tlp::GlBox::draw |
( |
float |
lod, |
|
|
Camera * |
camera |
|
) |
[virtual] |
|
Size* tlp::GlBox::getSize |
( |
|
) |
const |
|
|
Accessor in reading to the size. |
virtual void tlp::GlBox::getXML |
( |
xmlNodePtr |
rootNode |
) |
[virtual] |
|
void tlp::GlBox::setPosition |
( |
const Coord & |
position |
) |
|
|
|
Accessor in writing to the position. |
void tlp::GlBox::setSize |
( |
const Size & |
size |
) |
|
|
|
Accessor in writing to the size. |
virtual void tlp::GlBox::setWithXML |
( |
xmlNodePtr |
rootNode |
) |
[virtual] |
|
virtual void tlp::GlBox::translate |
( |
const Coord & |
mouvement |
) |
[virtual] |
|
Member Data Documentation
|
The coordinates of each of the 8 points of the box. - Attention:
- points[0] = front top left
points[1] = front top right
points[2] = front bottom right
points[3] = front bottom left
points[4] = back top left
points[5] = back top right
points[6] = back bottom right
points[7] = back bottom left
|
|
The position of the center of the box |
|
size is the "radius" of the box |
|