SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
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.

Definition at line 23 of file SLCurve.h.

Constructor & Destructor Documentation

◆ SLCurve()

SLCurve::SLCurve ( )
inline

Definition at line 26 of file SLCurve.h.

26 {}

◆ ~SLCurve()

virtual SLCurve::~SLCurve ( )
inlinevirtual

Definition at line 27 of file SLCurve.h.

27 {}

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.

Definition at line 35 of file SLCurve.h.

◆ _points

SLVVec4f SLCurve::_points
protected

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

Definition at line 34 of file SLCurve.h.

◆ _totalLength

SLfloat SLCurve::_totalLength
protected

Total length of curve.

Definition at line 36 of file SLCurve.h.


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