Tulip
5.2.1
Large graphs analysis and drawing
|
#include <GlStar.h>
Public Member Functions | |
GlStar (const Coord &position, const Size &size, unsigned int numberOfStarPoints, const Color &fillColor=Color(0, 0, 255), const Color &outlineColor=Color(0, 0, 0), bool outlined=true, const std::string &textureName="", float outlineSize=1.) | |
~GlStar () override | |
unsigned int | getNumberOfStarPoints () |
Public Member Functions inherited from tlp::GlComplexPolygon | |
GlComplexPolygon () | |
GlComplexPolygon (const std::vector< Coord > &coords, Color fcolor, int polygonEdgesType=0, const std::string &textureName="") | |
GlComplexPolygon (const std::vector< Coord > &coords, Color fcolor, Color ocolor, int polygonEdgesType=0, const std::string &textureName="") | |
GlComplexPolygon (const std::vector< std::vector< Coord >> &coords, Color fcolor, int polygonEdgesType=0, const std::string &textureName="") | |
GlComplexPolygon (const std::vector< std::vector< Coord >> &coords, Color fcolor, Color ocolor, int polygonEdgesType=0, const std::string &textureName="") | |
void | activateQuadBorder (const float borderWidth, const Color &color, const std::string &texture="", const int position=1, const float texCoordFactor=1.f, const int polygonId=0) |
void | desactivateQuadBorder (const int polygonId=0) |
void | draw (float lod, Camera *camera) override |
Color | getFillColor () const |
Color | getOutlineColor () const |
const std::vector< std::vector< Coord > > & | getPolygonSides () const |
std::string | getTextureName () |
float | getTextureZoom () |
void | getXML (std::string &outString) override |
virtual void | getXMLOnlyData (std::string &outString) |
void | setFillColor (const Color &color) |
void | setOutlineColor (const Color &color) |
void | setOutlineMode (const bool) |
void | setOutlineSize (double size) |
void | setTextureName (const std::string &name) |
void | setTextureZoom (float zoom) |
void | setWithXML (const std::string &inString, unsigned int ¤tPosition) override |
void | translate (const Coord &mouvement) override |
Public Member Functions inherited from tlp::GlSimpleEntity | |
GlSimpleEntity () | |
~GlSimpleEntity () override | |
virtual BoundingBox | getBoundingBox () |
int | getStencil () |
bool | isVisible () const |
virtual void | setStencil (int stencil) |
virtual void | setVisible (bool visible) |
Protected Member Functions | |
void | computeStar () |
Protected Member Functions inherited from tlp::GlComplexPolygon | |
virtual void | addPoint (const Coord &point) |
virtual void | beginNewHole () |
void | createPolygon (const std::vector< Coord > &coords, int polygonEdgesType) |
void | runTesselation () |
Protected Attributes | |
unsigned int | numberOfStarPoints |
Coord | position |
Size | size |
Protected Attributes inherited from tlp::GlComplexPolygon | |
int | currentVector |
Color | fillColor |
Color | outlineColor |
bool | outlined |
double | outlineSize |
std::vector< std::vector< Coord > > | points |
std::vector< std::vector< float > > | pointsIdx |
std::vector< bool > | quadBorderActivated |
std::vector< Color > | quadBorderColor |
std::vector< int > | quadBorderPosition |
std::vector< float > | quadBorderTexFactor |
std::vector< std::string > | quadBorderTexture |
std::vector< float > | quadBorderWidth |
std::string | textureName |
float | textureZoom |
std::vector< float > | verticesData |
std::vector< unsigned int > | verticesIndices |
Protected Attributes inherited from tlp::GlSimpleEntity | |
BoundingBox | boundingBox |
std::vector< GlComposite * > | parents |
int | stencil |
bool | visible |
tlp::GlStar::GlStar | ( | const Coord & | position, |
const Size & | size, | ||
unsigned int | numberOfStarPoints, | ||
const Color & | fillColor = Color(0, 0, 255) , |
||
const Color & | outlineColor = Color(0, 0, 0) , |
||
bool | outlined = true , |
||
const std::string & | textureName = "" , |
||
float | outlineSize = 1. |
||
) |
Constructor.
The outline is the border of the regular star
The fill is inside the regular star
|
override |
Destructor.
unsigned int tlp::GlStar::getNumberOfStarPoints | ( | ) |
Get the number of star points.