Tulip  4.6.0
Better Visualization Through Research
tlp::GlCircle Class Reference

#include <GlCircle.h>

+ Inheritance diagram for tlp::GlCircle:
+ Collaboration diagram for tlp::GlCircle:

List of all members.

Public Member Functions

 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)
virtual void getXML (std::string &outString)
void set (const Coord &center, float radius, float startAngle)

Detailed Description

Class used to render circles as GlEntity.

If you want a circle : use this class

Definition at line 36 of file GlCircle.h.


Constructor & Destructor Documentation

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.

Parameters:
startAngleif start angle is equal to 0, the circle construction begin with the top center point
segmentnumber of triangle used to render the circle

Member Function Documentation

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.

 All Classes Files Functions Variables Enumerations Enumerator Properties