![]()  | 
  
    Tulip
    6.0.0
    
   Large graphs analysis and drawing 
   | 
 
#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) | |
| void | getXML (std::string &outString) override | 
| void | set (const Coord ¢er, float radius, float startAngle) | 
  Public Member Functions inherited from tlp::GlRegularPolygon | |
| 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.) | |
| ~GlRegularPolygon () override | |
| unsigned int | getNumberOfSides () | 
| void | resizePoints (const unsigned int number) override | 
| void | setNumberOfSides (unsigned int number) | 
| void | setStartAngle (float angle) | 
  Public Member Functions inherited from tlp::GlPolygon | |
| 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 Coord & | point (const unsigned int i) | 
| virtual const Coord & | point (const unsigned int i) const | 
| virtual void | resizeColors (const unsigned int nbColors) | 
  Public Member Functions inherited from tlp::GlAbstractPolygon | |
| float | getOutlineSize () | 
| std::string | getTextureName () | 
| void | setFillColor (const Color &color) | 
| void | setOutlineColor (const Color &color) | 
| void | setOutlineSize (float size) | 
| void | setTextureName (const std::string &name) | 
  Public Member Functions inherited from tlp::GlSimpleEntity | |
| GlSimpleEntity () | |
| ~GlSimpleEntity () override | |
| virtual void | draw (float lod, Camera *camera)=0 | 
| virtual BoundingBox | getBoundingBox () | 
| int | getStencil () | 
| bool | isVisible () const | 
| virtual void | setStencil (int stencil) | 
| virtual void | setVisible (bool visible) | 
| virtual void | setWithXML (const std::string &inString, unsigned int ¤tPosition)=0 | 
Additional Inherited Members | |
  Protected Member Functions inherited from tlp::GlRegularPolygon | |
| void | computePolygon () | 
  Protected Attributes inherited from tlp::GlRegularPolygon | |
| unsigned int | numberOfSides | 
| Coord | position | 
| Size | size | 
| float | startAngle | 
  Protected Attributes inherited from tlp::GlAbstractPolygon | |
| GLubyte * | auxIndices | 
| GLuint | buffers [7] | 
| std::vector< Color > | fillColors | 
| bool | filled | 
| bool | generated | 
| float | hideOutlineLod | 
| GLubyte * | indices | 
| bool | invertYTexture | 
| bool | lighting | 
| std::vector< Coord > | normalArray | 
| std::vector< Color > | outlineColors | 
| bool | outlined | 
| float | outlineSize | 
| std::vector< Coord > | points | 
| PolygonMode | polygonMode | 
| GLfloat * | texArray | 
| std::string | textureName | 
  Protected Attributes inherited from tlp::GlSimpleEntity | |
| BoundingBox | boundingBox | 
| std::vector< GlComposite * > | parents | 
| int | stencil | 
| bool | visible | 
Class used to render circles as GlEntity.
If you want a circle : use this class
Definition at line 35 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 | 
      
  | 
  overridevirtual | 
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.