General class used to render circles as GlEntity.
More...
#include <GlCircle.h>
List of all members.
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) |
void | set (const Coord ¢er, float radius, float startAngle) |
virtual const Color & | fcolor (const unsigned int) const |
virtual Color & | fcolor (const unsigned int) |
virtual const Color & | ocolor (const unsigned int) const |
virtual Color & | ocolor (const unsigned int) |
virtual void | getXML (xmlNodePtr rootNode) |
| GlRegularPolygon (const Coord &position, const Size &size, unsigned int numberOfSides, const Color &outlineColor=Color(255, 0, 0, 255), const Color &fillColor=Color(0, 0, 255, 255), bool filled=true, bool outlined=true, const std::string &textureName="", float outlineSize=1.) |
virtual | ~GlRegularPolygon () |
void | setStartAngle (float angle) |
unsigned int | getNumberOfSides () |
void | resizePoints (const unsigned int number) |
void | setNumberOfSides (unsigned int number) |
| GlPolygon (const bool filled=true, const bool outlined=true, const std::string &textureName="", const float outlineSize=1) |
| GlPolygon (const std::vector< Coord > &points, const std::vector< Color > &fillColors, const std::vector< Color > &outlineColors, const bool filled, const bool outlined, const std::string &textureName="", const float outlineSize=1) |
| GlPolygon (const unsigned int nbPoints, const unsigned int nbFillColors, const unsigned int nbOutlineColors, const bool filled=true, const bool outlined=true, const std::string &textureName="", const float outlineSize=1) |
virtual | ~GlPolygon () |
virtual void | resizeColors (const unsigned int nbColors) |
virtual const Coord & | point (const unsigned int i) const |
virtual Coord & | point (const unsigned int i) |
| GlAbstractPolygon () |
virtual | ~GlAbstractPolygon () |
PolygonMode | getPolygonMode () |
void | setPolygonMode (PolygonMode mode) |
bool | getFillMode () |
void | setFillMode (const bool) |
bool | getOutlineMode () |
void | setOutlineMode (const bool) |
bool | getLightingMode () |
void | setLightingMode (const bool) |
Color | getFillColor (unsigned int i) |
void | setFillColor (unsigned int i, const Color &color) |
void | setFillColor (const Color &color) |
Color | getOutlineColor (unsigned int i) |
void | setOutlineColor (unsigned int i, const Color &color) |
void | setOutlineColor (const Color &color) |
std::string | getTextureName () |
void | setTextureName (const std::string &name) |
float | getOutlineSize () |
void | setOutlineSize (float size) |
float | getHideOutlineLod () |
void | setHideOutlineLod (float lod) |
virtual void | draw (float lod, Camera *camera) |
virtual void | translate (const Coord &mouvement) |
virtual void | getXMLOnlyData (xmlNodePtr rootNode) |
virtual void | setWithXML (xmlNodePtr rootNode) |
void | setFColor (const unsigned int i, const Color &color) |
virtual void | setOColor (const unsigned int i, const Color &color) |
| GlSimpleEntity () |
virtual | ~GlSimpleEntity () |
virtual void | acceptVisitor (GlSceneVisitor *visitor) |
virtual void | setVisible (bool visible) |
bool | isVisible () |
virtual void | setStencil (int stencil) |
int | getStencil () |
void | setCheckByBoundingBoxVisitor (bool check) |
bool | isCheckByBoundingBoxVisitor () |
virtual BoundingBox | getBoundingBox () |
virtual void | addLayerParent (GlLayer *) |
virtual void | removeLayerParent (GlLayer *) |
void | addParent (GlComposite *composite) |
void | removeParent (GlComposite *composite) |
virtual | ~GlEntity () |
Detailed Description
General class used to render circles as GlEntity.
This class is a generic class to render circles as GlEntity.
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 |
|
) |
| |
Member Function Documentation
virtual const Color& tlp::GlCircle::fcolor |
( |
const unsigned int |
| ) |
const |
|
inlinevirtual |
return the fill color of the circle (i parameter is not used) This is an overload of the GlPolygon function to dismiss its behavior.
Reimplemented from tlp::GlAbstractPolygon.
virtual Color& tlp::GlCircle::fcolor |
( |
const unsigned int |
| ) |
|
|
inlinevirtual |
return the fill color of the circle (i parameter is not used) This is an overload of the GlPolygon function to dismiss its behavior.
Reimplemented from tlp::GlAbstractPolygon.
virtual void tlp::GlCircle::getXML |
( |
xmlNodePtr |
rootNode | ) |
|
|
virtual |
virtual const Color& tlp::GlCircle::ocolor |
( |
const unsigned int |
| ) |
const |
|
inlinevirtual |
return the outline color of the circle (i parameter is not used) This is an overload of the GlPolygon function to dismiss its behavior.
Reimplemented from tlp::GlAbstractPolygon.
virtual Color& tlp::GlCircle::ocolor |
( |
const unsigned int |
| ) |
|
|
inlinevirtual |
return the outline color of the circle (i parameter is not used) This is an overload of the GlPolygon function to dismiss its behavior.
Reimplemented from tlp::GlAbstractPolygon.
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.
|