tlp::GlCurve Class Reference#include <GlCurve.h>
Inherits tlp::GlSimpleEntity.
Inheritance diagram for tlp::GlCurve:
[legend]Collaboration diagram for tlp::GlCurve:
[legend]List of all members.
Detailed Description
This class is use to display an OpenGl curve.
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
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 int |
nbPoints = 3u |
) |
|
|
|
Basic constructor with number of points |
virtual tlp::GlCurve::~GlCurve |
( |
|
) |
[virtual] |
|
Member Function Documentation
void tlp::GlCurve::draw |
( |
float |
lod, |
|
|
Camera * |
camera |
|
) |
[virtual] |
|
virtual void tlp::GlCurve::getXML |
( |
xmlNodePtr |
rootNode |
) |
[virtual] |
|
virtual tlp::Coord& tlp::GlCurve::point |
( |
const unsigned int |
i |
) |
[virtual] |
|
virtual const tlp::Coord& tlp::GlCurve::point |
( |
const unsigned int |
i |
) |
const [virtual] |
|
virtual void tlp::GlCurve::resizePoints |
( |
const unsigned int |
nbPoints |
) |
[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 |
( |
xmlNodePtr |
rootNode |
) |
[virtual] |
|
virtual void tlp::GlCurve::translate |
( |
const Coord & |
mouvement |
) |
[virtual] |
|
Member Data Documentation
|