tlp::GlADQuad Class Reference#include <GlADQuad.h>
List of all members.
Detailed Description
General class to render quads as augmented displays.
This class is a generic class to render quads as augmented displays. It doens't uses the basic parameters of the GlAugmentedDisplay(position and color) but it's own set of positions and colors. Public Member Functions
Protected Member Functions
Protected Attributes
Constructor & Destructor Documentation
tlp::GlADQuad::GlADQuad |
( |
|
) |
[protected] |
Default constructor
- Attention:
- This one is also forbidden to use.
tlp::GlADQuad::GlADQuad |
( |
Coord |
positions[N_QUAD_POINTS], |
|
|
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::GlADQuad::GlADQuad |
( |
Coord |
positions[N_QUAD_POINTS], |
|
|
Color |
colors[N_QUAD_POINTS] | |
|
) |
| | |
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::GlADQuad::~GlADQuad |
( |
|
) |
[virtual] |
Member Function Documentation
void tlp::GlADQuad::setPosition |
( |
const Coord & |
position |
) |
[protected] |
Accessor in writing to the basic position of GlAugmentedDisplay
- Attention:
- As you can see, this function is forbidden to the user to avoid him setting an unused parameter.
void tlp::GlADQuad::setColor |
( |
const Color & |
color |
) |
[protected] |
Accessor in writing to the basic color of GlAugmentedDisplay
- Attention:
- As you can see, this function is forbidden to the user to avoid him setting an unused parameter.
virtual void tlp::GlADQuad::draw |
( |
GlGraph * |
graph |
) |
[virtual] |
void tlp::GlADQuad::setPosition |
( |
int |
idPosition, |
|
|
const Coord & |
position | |
|
) |
| | |
Accessor in writing to the position. - Parameters:
-
| idPosition | Indicates which point we want to move. |
void tlp::GlADQuad::setColor |
( |
int |
idColor, |
|
|
const Color & |
color | |
|
) |
| | |
Accessor in writing to the color. - Parameters:
-
| idColor | Indicates which point we want to colorize. |
Coord* tlp::GlADQuad::getPosition |
( |
int |
idPosition |
) |
const |
Accessor in reading to the position. - Parameters:
-
| idPosition | Indicates which point we want to get the position. |
Color* tlp::GlADQuad::getColor |
( |
int |
idColor |
) |
const |
Accessor in reading to the color. - Parameters:
-
| idColor | Indicates which point we want to get the color. |
Member Data Documentation
The position of the points of the Quad
The colors of the points of the Quad
|