tlp::AbstractGlCurve Class Reference#include <AbstractGlCurve.h>
Inherits tlp::GlSimpleEntity.
Inherited by tlp::GlBezierCurve, tlp::GlCatmullRomCurve, and tlp::GlOpenUniformCubicBSpline.
Inheritance diagram for tlp::AbstractGlCurve:
[legend]Collaboration diagram for tlp::AbstractGlCurve:
[legend]List of all members.Public Member Functions
- AbstractGlCurve (const std::string &shaderProgramName, const std::string &curveSpecificShaderCode)
- AbstractGlCurve (const std::string &shaderProgramName, const std::string &curveSpecificShaderCode, const std::vector< Coord > &controlPoints, const Color &startColor, const Color &endColor, const float startSize, const float endSize, const unsigned int nbCurvePoints)
- virtual ~AbstractGlCurve ()
- void draw (float lod, Camera *camera)
- void translate (const Coord &move)
- virtual void setTexture (const std::string &texture)
- virtual void setOutlined (const bool outlined)
- virtual void setOutlineColor (const Color &outlineColor)
- virtual void setBillboardCurve (const bool billboardCurve)
- virtual void setLookDir (const Coord &lookDir)
- void getXML (xmlNodePtr rootNode)
- void setWithXML (xmlNodePtr rootNode)
- virtual void drawCurve (std::vector< Coord > &controlPoints, const Color &startColor, const Color &endColor, const float startSize, const float endSize, const unsigned int nbCurvePoints=100)
Protected Member Functions
Static Protected Member Functions
Protected Attributes
Static Protected Attributes
Constructor & Destructor Documentation
tlp::AbstractGlCurve::AbstractGlCurve |
( |
const std::string & |
shaderProgramName, |
|
|
const std::string & |
curveSpecificShaderCode |
|
) |
|
|
tlp::AbstractGlCurve::AbstractGlCurve |
( |
const std::string & |
shaderProgramName, |
|
|
const std::string & |
curveSpecificShaderCode, |
|
|
const std::vector< Coord > & |
controlPoints, |
|
|
const Color & |
startColor, |
|
|
const Color & |
endColor, |
|
|
const float |
startSize, |
|
|
const float |
endSize, |
|
|
const unsigned int |
nbCurvePoints |
|
) |
|
|
virtual tlp::AbstractGlCurve::~AbstractGlCurve |
( |
|
) |
[virtual] |
|
Member Function Documentation
static void tlp::AbstractGlCurve::buildCurveVertexBuffers |
( |
const unsigned int |
nbCurvePoints, |
|
|
bool |
vboOk |
|
) |
[static, protected] |
|
virtual void tlp::AbstractGlCurve::cleanupAfterCurveVertexShaderRendering |
( |
|
) |
[inline, protected, virtual] |
|
virtual Coord tlp::AbstractGlCurve::computeCurvePointOnCPU |
( |
const std::vector< Coord > & |
controlPoints, |
|
|
float |
t |
|
) |
[protected, pure virtual] |
|
virtual void tlp::AbstractGlCurve::computeCurvePointsOnCPU |
( |
const std::vector< Coord > & |
controlPoints, |
|
|
std::vector< Coord > & |
curvePoints, |
|
|
unsigned int |
nbCurvePoints |
|
) |
[protected, pure virtual] |
|
void tlp::AbstractGlCurve::draw |
( |
float |
lod, |
|
|
Camera * |
camera |
|
) |
[virtual] |
|
virtual void tlp::AbstractGlCurve::drawCurve |
( |
std::vector< Coord > & |
controlPoints, |
|
|
const Color & |
startColor, |
|
|
const Color & |
endColor, |
|
|
const float |
startSize, |
|
|
const float |
endSize, |
|
|
const unsigned int |
nbCurvePoints = 100 |
|
) |
[virtual] |
|
void tlp::AbstractGlCurve::getXML |
( |
xmlNodePtr |
rootNode |
) |
[virtual] |
|
void tlp::AbstractGlCurve::initShader |
( |
const std::string & |
shaderProgramName, |
|
|
const std::string & |
curveSpecificShaderCode |
|
) |
[protected] |
|
virtual void tlp::AbstractGlCurve::setBillboardCurve |
( |
const bool |
billboardCurve |
) |
[inline, virtual] |
|
virtual void tlp::AbstractGlCurve::setCurveVertexShaderRenderingSpecificParameters |
( |
|
) |
[inline, protected, virtual] |
|
virtual void tlp::AbstractGlCurve::setLookDir |
( |
const Coord & |
lookDir |
) |
[inline, virtual] |
|
virtual void tlp::AbstractGlCurve::setOutlineColor |
( |
const Color & |
outlineColor |
) |
[inline, virtual] |
|
virtual void tlp::AbstractGlCurve::setOutlined |
( |
const bool |
outlined |
) |
[inline, virtual] |
|
virtual void tlp::AbstractGlCurve::setTexture |
( |
const std::string & |
texture |
) |
[inline, virtual] |
|
void tlp::AbstractGlCurve::setWithXML |
( |
xmlNodePtr |
rootNode |
) |
[virtual] |
|
void tlp::AbstractGlCurve::translate |
( |
const Coord & |
move |
) |
[virtual] |
|
Member Data Documentation
|