![]() |
Tulip
4.6.0
Better Visualization Through Research
|
#include <GlCircle.h>
Inheritance diagram for tlp::GlCircle:
Collaboration diagram for tlp::GlCircle:Public Member Functions | |
| GlCircle (const Coord ¢er=Coord(0, 0, 0), float radius=1., const Color &outlineColor=Color(255, 0, 0, 255), const Color &fillColor=Color(0, 0, 255, 255), bool filled=false, bool outlined=true, float startAngle=0.0, unsigned int segments=10) | |
| virtual void | getXML (std::string &outString) |
| void | set (const Coord ¢er, float radius, float startAngle) |
Class used to render circles as GlEntity.
If you want a circle : use this class
Definition at line 36 of file GlCircle.h.
| tlp::GlCircle::GlCircle | ( | const Coord & | center = Coord(0, 0, 0), |
| float | radius = 1., |
||
| const Color & | outlineColor = Color(255, 0, 0, 255), |
||
| const Color & | fillColor = Color(0, 0, 255, 255), |
||
| bool | filled = false, |
||
| bool | outlined = true, |
||
| float | startAngle = 0.0, |
||
| unsigned int | segments = 10 |
||
| ) |
Constructor.
| startAngle | if start angle is equal to 0, the circle construction begin with the top center point |
| segment | number of triangle used to render the circle |
| virtual void tlp::GlCircle::getXML | ( | std::string & | outString | ) | [virtual] |
Function to export data in XML.
Implements tlp::GlSimpleEntity.
| void tlp::GlCircle::set | ( | const Coord & | center, |
| float | radius, | ||
| float | startAngle | ||
| ) |
Write-acess Accessor to the center, the radius and the startAngle of the circle.