tlp::GlPolygon Class Reference
#include <GlPolygon.h>
List of all members.
Detailed Description
class to create a polygon
Public Member Functions
- GlPolygon (const bool filled=true, const bool outlined=true)
- GlPolygon (const std::vector< Coord > &points, const std::vector< Color > &fillColors, const std::vector< Color > &outlineColors, const bool filled, const bool outlined)
- GlPolygon (const unsigned int nbPoints, const unsigned int nbFillColors, const unsigned int nbOutlineColors, const bool filled=true, const bool outlined=true)
- virtual ~GlPolygon ()
- void draw (float lod, Camera *camera)
- virtual void resizePoints (const unsigned int nbPoints)
- virtual void resizeColors (const unsigned int nbColors)
- virtual const Coord & point (const unsigned int i) const
- virtual Coord & point (const unsigned int i)
- virtual void addPoint (const Coord &point, const Color &fcolor, const Color &ocolor)
- virtual const Color & fcolor (const unsigned int i) const
- virtual Color & fcolor (const unsigned int i)
- virtual const Color & ocolor (const unsigned int i) const
- virtual Color & ocolor (const unsigned int i)
- void setFillMode (const bool)
- void setOutlineMode (const bool)
- virtual void translate (const Coord &mouvement)
- virtual void getXML (xmlNodePtr rootNode)
- virtual void getXMLOnlyData (xmlNodePtr rootNode)
- virtual void setWithXML (xmlNodePtr rootNode)
Protected Attributes
Constructor & Destructor Documentation
| tlp::GlPolygon::GlPolygon |
( |
const bool |
filled = true, |
|
|
const bool |
outlined = true | |
|
) |
| | |
| tlp::GlPolygon::GlPolygon |
( |
const std::vector< Coord > & |
points, |
|
|
const std::vector< Color > & |
fillColors, |
|
|
const std::vector< Color > & |
outlineColors, |
|
|
const bool |
filled, |
|
|
const bool |
outlined | |
|
) |
| | |
| tlp::GlPolygon::GlPolygon |
( |
const unsigned int |
nbPoints, |
|
|
const unsigned int |
nbFillColors, |
|
|
const unsigned int |
nbOutlineColors, |
|
|
const bool |
filled = true, |
|
|
const bool |
outlined = true | |
|
) |
| | |
| virtual tlp::GlPolygon::~GlPolygon |
( |
|
) |
[virtual] |
Member Function Documentation
| void tlp::GlPolygon::draw |
( |
float |
lod, |
|
|
Camera * |
camera | |
|
) |
| | [virtual] |
| virtual void tlp::GlPolygon::resizePoints |
( |
const unsigned int |
nbPoints |
) |
[virtual] |
| virtual void tlp::GlPolygon::resizeColors |
( |
const unsigned int |
nbColors |
) |
[virtual] |
| virtual const Coord& tlp::GlPolygon::point |
( |
const unsigned int |
i |
) |
const [virtual] |
| virtual Coord& tlp::GlPolygon::point |
( |
const unsigned int |
i |
) |
[virtual] |
| virtual void tlp::GlPolygon::addPoint |
( |
const Coord & |
point, |
|
|
const Color & |
fcolor, |
|
|
const Color & |
ocolor | |
|
) |
| | [virtual] |
| virtual const Color& tlp::GlPolygon::fcolor |
( |
const unsigned int |
i |
) |
const [virtual] |
| virtual Color& tlp::GlPolygon::fcolor |
( |
const unsigned int |
i |
) |
[virtual] |
| virtual const Color& tlp::GlPolygon::ocolor |
( |
const unsigned int |
i |
) |
const [virtual] |
| virtual Color& tlp::GlPolygon::ocolor |
( |
const unsigned int |
i |
) |
[virtual] |
| void tlp::GlPolygon::setFillMode |
( |
const |
bool |
) |
|
| void tlp::GlPolygon::setOutlineMode |
( |
const |
bool |
) |
|
| virtual void tlp::GlPolygon::translate |
( |
const Coord & |
mouvement |
) |
[virtual] |
| virtual void tlp::GlPolygon::getXML |
( |
xmlNodePtr |
rootNode |
) |
[virtual] |
| virtual void tlp::GlPolygon::getXMLOnlyData |
( |
xmlNodePtr |
rootNode |
) |
[virtual] |
Function to export data in XML
| virtual void tlp::GlPolygon::setWithXML |
( |
xmlNodePtr |
rootNode |
) |
[virtual] |
Member Data Documentation