Overview     Modules     Class Hierarchy     Classes     Members  

tlp::GlPolygon Class Reference

#include <GlPolygon.h>

Inheritance diagram for tlp::GlPolygon:
Collaboration diagram for tlp::GlPolygon:

List of all members.


Detailed Description

class to create a polygon

Public Member Functions

  • GlPolygon (const bool filled=true, const bool outlined=true)
  • GlPolygon (const std::vector< Coord > &points, const std::vector< Color > &fillColors, const std::vector< Color > &outlineColors, const bool filled, const bool outlined)
  • GlPolygon (const unsigned int nbPoints, const unsigned int nbFillColors, const unsigned int nbOutlineColors, const bool filled=true, const bool outlined=true)
  • virtual ~GlPolygon ()
  • void draw (float lod, Camera *camera)
  • virtual void resizePoints (const unsigned int nbPoints)
  • virtual void resizeColors (const unsigned int nbColors)
  • virtual const Coord & point (const unsigned int i) const
  • virtual Coord & point (const unsigned int i)
  • virtual void addPoint (const Coord &point, const Color &fcolor, const Color &ocolor)
  • virtual const Color & fcolor (const unsigned int i) const
  • virtual Color & fcolor (const unsigned int i)
  • virtual const Color & ocolor (const unsigned int i) const
  • virtual Color & ocolor (const unsigned int i)
  • void setFillMode (const bool)
  • void setOutlineMode (const bool)
  • virtual void translate (const Coord &mouvement)
  • virtual void getXML (xmlNodePtr rootNode)
  • virtual void getXMLOnlyData (xmlNodePtr rootNode)
  • virtual void setWithXML (xmlNodePtr rootNode)

Protected Attributes


Constructor & Destructor Documentation

tlp::GlPolygon::GlPolygon ( const bool  filled = true,
const bool  outlined = true 
)

tlp::GlPolygon::GlPolygon ( const std::vector< Coord > &  points,
const std::vector< Color > &  fillColors,
const std::vector< Color > &  outlineColors,
const bool  filled,
const bool  outlined 
)

tlp::GlPolygon::GlPolygon ( const unsigned int  nbPoints,
const unsigned int  nbFillColors,
const unsigned int  nbOutlineColors,
const bool  filled = true,
const bool  outlined = true 
)

virtual tlp::GlPolygon::~GlPolygon (  )  [virtual]


Member Function Documentation

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

Draw function

Implements tlp::GlSimpleEntity.

Reimplemented in tlp::GlRect.

virtual void tlp::GlPolygon::resizePoints ( const unsigned int  nbPoints  )  [virtual]

virtual void tlp::GlPolygon::resizeColors ( const unsigned int  nbColors  )  [virtual]

virtual const Coord& tlp::GlPolygon::point ( const unsigned int  i  )  const [virtual]

virtual Coord& tlp::GlPolygon::point ( const unsigned int  i  )  [virtual]

virtual void tlp::GlPolygon::addPoint ( const Coord &  point,
const Color &  fcolor,
const Color &  ocolor 
) [virtual]

virtual const Color& tlp::GlPolygon::fcolor ( const unsigned int  i  )  const [virtual]

virtual Color& tlp::GlPolygon::fcolor ( const unsigned int  i  )  [virtual]

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

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

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

void tlp::GlPolygon::setOutlineMode ( const   bool  ) 

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

Translate entity

Reimplemented from tlp::GlSimpleEntity.

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

Function to export data and type in XML

Implements tlp::GlSimpleEntity.

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

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

Function to export data in XML

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

Function to set data with XML

Implements tlp::GlSimpleEntity.

Reimplemented in tlp::GlRect.


Member Data Documentation

std::vector<Coord> tlp::GlPolygon::_points [protected]

std::vector<Color> tlp::GlPolygon::_fillColors [protected]

std::vector<Color> tlp::GlPolygon::_outlineColors [protected]

bool tlp::GlPolygon::_filled [protected]

bool tlp::GlPolygon::_outlined [protected]



Tulip Software by LaBRI Visualization Team    2001 - 2008