SLProject 4.0.000
SLCurve Class Referenceabstract

Base class for curves defined by multiple 3D points. More...

#include <SLCurve.h>

Inheritance diagram for SLCurve:
[legend]

Public Member Functions

 SLCurve ()
 
virtual ~SLCurve ()
 
virtual void dispose ()=0
 
virtual SLVec3f evaluate (const SLfloat t)=0
 
virtual void draw (const SLMat4f &wm)=0
 

Protected Attributes

SLVVec4f _points
 Sample points (x,y,z) and time (w) of curve. More...
 
SLVfloat _lengths
 Length of each curve segment. More...
 
SLfloat _totalLength
 Total length of curve. More...
 

Detailed Description

Base class for curves defined by multiple 3D points.

Base class for curves defined by multiple 3D points. Derived classes (e.g. SLCurveBezier) implement specific curve interpolation schemes.

Constructor & Destructor Documentation

◆ SLCurve()

SLCurve::SLCurve ( )
inline

◆ ~SLCurve()

virtual SLCurve::~SLCurve ( )
inlinevirtual

Member Function Documentation

◆ dispose()

virtual void SLCurve::dispose ( )
pure virtual

Implemented in SLCurveBezier.

◆ draw()

virtual void SLCurve::draw ( const SLMat4f wm)
pure virtual

Implemented in SLCurveBezier.

◆ evaluate()

virtual SLVec3f SLCurve::evaluate ( const SLfloat  t)
pure virtual

Implemented in SLCurveBezier.

Member Data Documentation

◆ _lengths

SLVfloat SLCurve::_lengths
protected

Length of each curve segment.

◆ _points

SLVVec4f SLCurve::_points
protected

Sample points (x,y,z) and time (w) of curve.

◆ _totalLength

SLfloat SLCurve::_totalLength
protected

Total length of curve.


The documentation for this class was generated from the following file: