Tulip  5.3.1
Large graphs analysis and drawing
tlp::GlAbstractPolygon Class Reference

#include <GlAbstractPolygon.h>

+ Inheritance diagram for tlp::GlAbstractPolygon:
+ Collaboration diagram for tlp::GlAbstractPolygon:

Public Member Functions

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 ()
 
virtual void getXML (std::string &outString)=0
 
bool isVisible () const
 
virtual void setStencil (int stencil)
 
virtual void setVisible (bool visible)
 
virtual void setWithXML (const std::string &inString, unsigned int &currentPosition)=0
 

Protected Attributes

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
 

Detailed Description

class to create a abstract polygon

Warning
You don't have to use this class, it's only a base class for some others entities

Definition at line 39 of file GlAbstractPolygon.h.

Member Function Documentation

◆ getOutlineSize()

float tlp::GlAbstractPolygon::getOutlineSize ( )

Get the outline size.

◆ getTextureName()

std::string tlp::GlAbstractPolygon::getTextureName ( )

Get the textureName.

◆ setFillColor()

void tlp::GlAbstractPolygon::setFillColor ( const Color &  color)

Set color used to filling the whole polygon.

◆ setOutlineColor()

void tlp::GlAbstractPolygon::setOutlineColor ( const Color &  color)

Set the color used to outlining the whole polygon.

◆ setOutlineSize()

void tlp::GlAbstractPolygon::setOutlineSize ( float  size)

Set the outline size.

◆ setTextureName()

void tlp::GlAbstractPolygon::setTextureName ( const std::string &  name)

Set the textureName.