Provided by: tulip-doc_3.1.2-2.3ubuntu3_all bug


       tlp::GlCurve -

       This class is use to display an OpenGl curve.


       #include <GlCurve.h>

       Inherits tlp::GlSimpleEntity.

   Public Member Functions
       GlCurve (const std::vector< tlp::Coord > &points, const Color &beginFColor, const Color
           &endFColor, const float &beginSize=0., const float &endSize=0.)
       GlCurve (const unsigned int nbPoints=3u)
       virtual ~GlCurve ()
       void draw (float lod, Camera *camera)
       void setTexture (const std::string &texture)
       virtual void resizePoints (const unsigned int nbPoints)
       virtual const tlp::Coord & point (const unsigned int i) const
       virtual tlp::Coord & point (const unsigned int i)
       virtual void translate (const Coord &mouvement)
       virtual void getXML (xmlNodePtr rootNode)
       virtual void setWithXML (xmlNodePtr rootNode)

   Protected Attributes
       std::vector< tlp::Coord > _points
       Color _beginFillColor
       Color _endFillColor
       float _beginSize
       float _endSize
       std::string texture

Detailed Description

       This class is use to display an OpenGl curve.

Constructor & Destructor Documentation

   tlp::GlCurve::GlCurve (const std::vector< tlp::Coord > &points, const Color &beginFColor,
       const Color &endFColor, const float &beginSize = 0., const float &endSize = 0.) Basic
       constructor with vector of coord, begin/end color and begin/end size
   tlp::GlCurve::GlCurve (const unsigned intnbPoints = 3u) Basic constructor with number of
   virtual tlp::GlCurve::~GlCurve () [virtual]

Member Function Documentation

   void tlp::GlCurve::draw (floatlod, Camera *camera) [virtual] Draw the curve
       Implements tlp::GlSimpleEntity.

   virtual void tlp::GlCurve::getXML (xmlNodePtrrootNode) [virtual] Function to export data in
       Implements tlp::GlSimpleEntity.

   virtual const tlp::Coord& tlp::GlCurve::point (const unsigned inti) const [virtual] Return the
       ith coord
   virtual tlp::Coord& tlp::GlCurve::point (const unsigned inti) [virtual] Return the ith coord
   virtual void tlp::GlCurve::resizePoints (const unsigned intnbPoints) [virtual] Change the
       number of points
   void tlp::GlCurve::setTexture (const std::string &texture) Set the texture of the curve (if
       you want texture)
   virtual void tlp::GlCurve::setWithXML (xmlNodePtrrootNode) [virtual] Function to set data with
       Implements tlp::GlSimpleEntity.

   virtual void tlp::GlCurve::translate (const Coord &mouvement) [virtual] Translate entity
       Reimplemented from tlp::GlSimpleEntity.

Member Data Documentation

   Color tlp::GlCurve::_beginFillColor [protected]
   float tlp::GlCurve::_beginSize [protected]
   Color tlp::GlCurve::_endFillColor [protected]
   float tlp::GlCurve::_endSize [protected]
   std::vector<tlp::Coord> tlp::GlCurve::_points [protected]
   std::string tlp::GlCurve::texture [protected]


       Generated automatically by Doxygen for Tulip Open GL Library from the source code.