Tulip 6.1.0
Large graphs analysis and drawing
Loading...
Searching...
No Matches
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.

Here is the call graph for this function:

◆ setOutlineColor()

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

Set the color used to outlining the whole polygon.

Here is the caller graph for this function:

◆ setOutlineSize()

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

Set the outline size.

Here is the call graph for this function:

◆ setTextureName()

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

Set the textureName.

Member Data Documentation

◆ auxIndices

GLubyte* tlp::GlAbstractPolygon::auxIndices
protected

Definition at line 248 of file GlAbstractPolygon.h.

◆ buffers

GLuint tlp::GlAbstractPolygon::buffers[7]
protected

Definition at line 252 of file GlAbstractPolygon.h.

◆ fillColors

std::vector<Color> tlp::GlAbstractPolygon::fillColors
protected

Definition at line 236 of file GlAbstractPolygon.h.

◆ filled

bool tlp::GlAbstractPolygon::filled
protected

Definition at line 238 of file GlAbstractPolygon.h.

◆ generated

bool tlp::GlAbstractPolygon::generated
protected

Definition at line 251 of file GlAbstractPolygon.h.

◆ hideOutlineLod

float tlp::GlAbstractPolygon::hideOutlineLod
protected

Definition at line 244 of file GlAbstractPolygon.h.

◆ indices

GLubyte* tlp::GlAbstractPolygon::indices
protected

Definition at line 247 of file GlAbstractPolygon.h.

◆ invertYTexture

bool tlp::GlAbstractPolygon::invertYTexture
protected

Definition at line 241 of file GlAbstractPolygon.h.

◆ lighting

bool tlp::GlAbstractPolygon::lighting
protected

Definition at line 240 of file GlAbstractPolygon.h.

◆ normalArray

std::vector<Coord> tlp::GlAbstractPolygon::normalArray
protected

Definition at line 246 of file GlAbstractPolygon.h.

◆ outlineColors

std::vector<Color> tlp::GlAbstractPolygon::outlineColors
protected

Definition at line 237 of file GlAbstractPolygon.h.

◆ outlined

bool tlp::GlAbstractPolygon::outlined
protected

Definition at line 239 of file GlAbstractPolygon.h.

◆ outlineSize

float tlp::GlAbstractPolygon::outlineSize
protected

Definition at line 243 of file GlAbstractPolygon.h.

◆ points

std::vector<Coord> tlp::GlAbstractPolygon::points
protected

Definition at line 235 of file GlAbstractPolygon.h.

◆ polygonMode

PolygonMode tlp::GlAbstractPolygon::polygonMode
protected

Definition at line 234 of file GlAbstractPolygon.h.

◆ texArray

GLfloat* tlp::GlAbstractPolygon::texArray
protected

Definition at line 249 of file GlAbstractPolygon.h.

◆ textureName

std::string tlp::GlAbstractPolygon::textureName
protected

Definition at line 242 of file GlAbstractPolygon.h.