tlp::GlQuad Class Reference
[GlEntities]
General class to render quads .
More...
#include <GlQuad.h>
List of all members.
Public Member Functions
- GlQuad ()
- GlQuad (const Coord positions[4], const Color &color)
- GlQuad (const Coord positions[4], const Color colors[4])
- virtual ~GlQuad ()
- void setPosition (const int idPosition, const Coord &position)
- void setColor (const int idColor, const Color &color)
- void setColor (const Color &color)
- const Coord & getPosition (const int idPosition) const
- const Color & getColor (const int idColor) const
- virtual void getXML (xmlNodePtr rootNode)
- virtual void setWithXML (xmlNodePtr rootNode)
Detailed Description
General class to render quads .
This class is a generic class to render quadsl.
Constructor & Destructor Documentation
tlp::GlQuad::GlQuad |
( |
const Coord |
positions[4], |
|
|
const Color & |
color | |
|
) |
| | |
Constructor
- Parameters:
-
| positions | Array indicating the position of the points. The first point is the top-left one. The next points are winding in clockwise order. |
| color | A single color indicating the color for every point of the Quad. |
tlp::GlQuad::GlQuad |
( |
const Coord |
positions[4], |
|
|
const Color |
colors[4] | |
|
) |
| | |
Constructor
- Parameters:
-
| positions | Array indicating the position of the points. The first point is the top-left one. The next points are winding in clockwise order. |
| colors | Array indicating the color of the points. The order is the same as for the positions. |
virtual tlp::GlQuad::~GlQuad |
( |
|
) |
[virtual] |
Member Function Documentation
const Color& tlp::GlQuad::getColor |
( |
const int |
idColor |
) |
const |
Accessor in reading to the color.
- Parameters:
-
| idColor | Indicates which point we want to get the color. |
const Coord& tlp::GlQuad::getPosition |
( |
const int |
idPosition |
) |
const |
Accessor in reading to the position.
- Parameters:
-
| idPosition | Indicates which point we want to get the position. |
virtual void tlp::GlQuad::getXML |
( |
xmlNodePtr |
rootNode |
) |
[virtual] |
void tlp::GlQuad::setColor |
( |
const Color & |
color |
) |
|
Accessor in writing to the basic color of GlAugmentedDisplay
void tlp::GlQuad::setColor |
( |
const int |
idColor, |
|
|
const Color & |
color | |
|
) |
| | |
Accessor in writing to the color.
- Parameters:
-
| idColor | Indicates which point we want to colorize. |
void tlp::GlQuad::setPosition |
( |
const int |
idPosition, |
|
|
const Coord & |
position | |
|
) |
| | |
Accessor in writing to the position.
- Parameters:
-
| idPosition | Indicates which point we want to move. |
virtual void tlp::GlQuad::setWithXML |
( |
xmlNodePtr |
rootNode |
) |
[virtual] |