Overview     Modules     Class Hierarchy     Classes     Members  

#include <GlAbstractPolygon.h>

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

List of all members.

Public Types

Public Member Functions

Protected Member Functions

Protected Attributes


Detailed Description

class to create a abstract polygon


Member Enumeration Documentation

Enumerator:
POLYGON 
QUAD_STRIP 

Constructor & Destructor Documentation

Default empty destructor


Member Function Documentation

virtual void tlp::GlAbstractPolygon::clearGenerated ( ) [protected, virtual]

Clear previously generated VBO

virtual void tlp::GlAbstractPolygon::draw ( float  lod,
Camera camera 
) [virtual]

Draw the polygon

Implements tlp::GlSimpleEntity.

Reimplemented in tlp::GlRect, and tlp::Gl2DRect.

const Color& tlp::GlAbstractPolygon::fcolor ( const unsigned int  i) const

return the ith color used for filling the polygon

Deprecated:
use getFillColor

Reimplemented in tlp::GlCircle.

Color& tlp::GlAbstractPolygon::fcolor ( const unsigned int  i)

return the ith color used for filling the polygon

Deprecated:
use getFillColor

Reimplemented in tlp::GlCircle.

Color tlp::GlAbstractPolygon::getFillColor ( unsigned int  i)

Get the ith color used to filling the polygon

Get if the polygon is filled or not

Get the lod outline value, below this lod value outline will not be displayed

Get if the polygon use light or not

Color tlp::GlAbstractPolygon::getOutlineColor ( unsigned int  i)

Get the ith color used to outlining the polygon

Get if the polygon is outlined or not

Get the outline size

Get the polygon mode (see PolygonMode enum)

Get the textureName

virtual void tlp::GlAbstractPolygon::getXML ( xmlNodePtr  rootNode) [virtual]

Function to export data and type in XML

Implements tlp::GlSimpleEntity.

Reimplemented in tlp::GlQuad, tlp::GlRect, tlp::Gl2DRect, and tlp::GlCircle.

virtual void tlp::GlAbstractPolygon::getXMLOnlyData ( xmlNodePtr  rootNode) [virtual]

Function to export data in XML

const Color& tlp::GlAbstractPolygon::ocolor ( const unsigned int  i) const

return the ith color used for outlining the polygon

Deprecated:
use getOutlineColor

Reimplemented in tlp::GlCircle.

virtual Color& tlp::GlAbstractPolygon::ocolor ( const unsigned int  i) [virtual]

return the ith color used for outlining the polygon

Deprecated:
use getOutlineColor

Reimplemented in tlp::GlCircle.

virtual void tlp::GlAbstractPolygon::recomputeBoundingBox ( ) [protected, virtual]

Clear previous bounding box and expand bounding box with polygons' points

void tlp::GlAbstractPolygon::setFColor ( const unsigned int  i,
const Color &  color 
)

Set the ith color used for filling the polygon

Deprecated:
use setFillColor
void tlp::GlAbstractPolygon::setFillColor ( unsigned int  i,
const Color &  color 
)

Set the ith color used to filling the polygon

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

Set color used to filling the whole polygon

virtual void tlp::GlAbstractPolygon::setFillColors ( const std::vector< Color > &  colors) [protected, virtual]

set fill colors of the polygon

void tlp::GlAbstractPolygon::setFillMode ( const bool  )

Set if the polygon is filled or not

Set the lod outline value, below this lod value outline will not be displayed

Set if the polygon use light or not

virtual void tlp::GlAbstractPolygon::setOColor ( const unsigned int  i,
const Color &  color 
) [virtual]

Set the ith color used for outlining the polygon

Deprecated:
use setOutlineColor
void tlp::GlAbstractPolygon::setOutlineColor ( unsigned int  i,
const Color &  color 
)

Set the ith color used to outlining the polygon

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

Set the color used to outlining the whole polygon

virtual void tlp::GlAbstractPolygon::setOutlineColors ( const std::vector< Color > &  colors) [protected, virtual]

set outline colors of the polygon

Set if the polygon is outlined or not

Set the outline size

virtual void tlp::GlAbstractPolygon::setPoint ( unsigned int  index,
const Coord &  point 
) [protected, virtual]

set ith Coord of the polygon

virtual void tlp::GlAbstractPolygon::setPoints ( const std::vector< Coord > &  points) [protected, virtual]

set Coords of the polygon

Set the polygon mode (see PolygonMode enum)

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

Set the textureName

virtual void tlp::GlAbstractPolygon::setWithXML ( xmlNodePtr  rootNode) [virtual]

Function to set data with XML

Implements tlp::GlSimpleEntity.

Reimplemented in tlp::GlQuad, tlp::GlRect, and tlp::Gl2DRect.

virtual void tlp::GlAbstractPolygon::translate ( const Coord &  mouvement) [virtual]

Translate entity

Reimplemented from tlp::GlSimpleEntity.

Reimplemented in tlp::Gl2DRect.


Member Data Documentation

GLubyte* tlp::GlAbstractPolygon::auxIndices [protected]
GLuint tlp::GlAbstractPolygon::buffers[7] [protected]
std::vector<Color> tlp::GlAbstractPolygon::fillColors [protected]
GLubyte* tlp::GlAbstractPolygon::indices [protected]
std::vector<Coord> tlp::GlAbstractPolygon::normalArray [protected]
std::vector<Color> tlp::GlAbstractPolygon::outlineColors [protected]
std::vector<Coord> tlp::GlAbstractPolygon::points [protected]
GLfloat* tlp::GlAbstractPolygon::texArray [protected]
std::string tlp::GlAbstractPolygon::textureName [protected]


Tulip Software by LaBRI Visualization Team    2001 - 2012