tlp::GlCurve Class Reference
This class is use to display an OpenGl curve.
More...
#include <GlCurve.h>
List of all members.
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
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 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