Tulip  4.8.0
Better Visualization Through Research
 All Classes Files Functions Variables Enumerations Enumerator Properties Groups Pages
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 ()
 
virtual ~GlSimpleEntity ()
 
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 48 of file GlAbstractPolygon.h.

Member Function Documentation

float tlp::GlAbstractPolygon::getOutlineSize ( )

Get the outline size.

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

Get the textureName.

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

Set color used to filling the whole polygon.

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

Set the color used to outlining the whole polygon.

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

Set the outline size.

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

Set the textureName.