tlp::GlHudPolygon Class Reference#include <GlHudPolygon.h>
List of all members. Public Member Functions
- GlHudPolygon (const vector< tlp::Coord > &points, const vector< tlp::Color > &fillColors, const vector< tlp::Color > &outlineColors, const bool filled, const bool outlined)
- GlHudPolygon (const unsigned int nbPoints=3u, const unsigned int nbFillColors=1u, const unsigned int nbOutlineColors=1u, const bool filled=true, const bool outlined=true)
- virtual ~GlHudPolygon ()
- void draw (tlp::GlGraph *)
- virtual void resizePoints (const unsigned int nbPoints)
- virtual void resizeColors (const unsigned int nbColors)
- virtual const
tlp::Coord & point (const unsigned int i) const
- virtual tlp::Coord & point (const unsigned int i)
- virtual const
tlp::Color & fcolor (const unsigned int i) const
- virtual tlp::Color & fcolor (const unsigned int i)
- virtual const
tlp::Color & ocolor (const unsigned int i) const
- virtual tlp::Color & ocolor (const unsigned int i)
- void setFillMode (const bool)
- void setOutlineMode (const bool)
Protected Attributes
Constructor & Destructor Documentation
tlp::GlHudPolygon::GlHudPolygon |
( |
const vector< tlp::Coord > & |
points, |
|
|
const vector< tlp::Color > & |
fillColors, |
|
|
const vector< tlp::Color > & |
outlineColors, |
|
|
const bool |
filled, |
|
|
const bool |
outlined | |
|
) |
| | |
tlp::GlHudPolygon::GlHudPolygon |
( |
const unsigned int |
nbPoints = 3u , |
|
|
const unsigned int |
nbFillColors = 1u , |
|
|
const unsigned int |
nbOutlineColors = 1u , |
|
|
const bool |
filled = true , |
|
|
const bool |
outlined = true | |
|
) |
| | |
virtual tlp::GlHudPolygon::~GlHudPolygon |
( |
|
) |
[virtual] |
Member Function Documentation
Function used to draw ... This is a pure virtual function - Attention:
- Must absolutely be called with unsetup in every derivated class
You call setup(), you render, you call unsetup()
This must not be called withing glBegin/glEnd statements.
Reimplemented from tlp::GlHud.
virtual void tlp::GlHudPolygon::resizePoints |
( |
const unsigned int |
nbPoints |
) |
[virtual] |
virtual void tlp::GlHudPolygon::resizeColors |
( |
const unsigned int |
nbColors |
) |
[virtual] |
virtual const tlp::Coord& tlp::GlHudPolygon::point |
( |
const unsigned int |
i |
) |
const [virtual] |
virtual tlp::Coord& tlp::GlHudPolygon::point |
( |
const unsigned int |
i |
) |
[virtual] |
virtual const tlp::Color& tlp::GlHudPolygon::fcolor |
( |
const unsigned int |
i |
) |
const [virtual] |
virtual tlp::Color& tlp::GlHudPolygon::fcolor |
( |
const unsigned int |
i |
) |
[virtual] |
virtual const tlp::Color& tlp::GlHudPolygon::ocolor |
( |
const unsigned int |
i |
) |
const [virtual] |
virtual tlp::Color& tlp::GlHudPolygon::ocolor |
( |
const unsigned int |
i |
) |
[virtual] |
void tlp::GlHudPolygon::setFillMode |
( |
const |
bool |
) |
|
void tlp::GlHudPolygon::setOutlineMode |
( |
const |
bool |
) |
|
Member Data Documentation
|