HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TsEvaluator< T > Class Template Reference

Opaque interface to a spline for evaluations using cached segments. More...

#include <evaluator.h>

Public Member Functions

 TsEvaluator ()
 Default constructor; falls back to empty spline. More...
 
 TsEvaluator (TsSpline spline)
 Constructs the evaluator and its caches for the given spline. More...
 
T Eval (const TsTime &time, TsSide side=TsRight) const
 

Detailed Description

template<typename T>
class TsEvaluator< T >

Opaque interface to a spline for evaluations using cached segments.

Use this evaluator when performing many evaluations on an unchanging TsSpline whose knots support tangents (e.g., Bezier splines). Evals on this class are required to be thread-safe.

Definition at line 47 of file evaluator.h.

Constructor & Destructor Documentation

template<typename T >
TsEvaluator< T >::TsEvaluator ( )

Default constructor; falls back to empty spline.

Definition at line 72 of file evaluator.h.

template<typename T >
TsEvaluator< T >::TsEvaluator ( TsSpline  spline)

Constructs the evaluator and its caches for the given spline.

Definition at line 77 of file evaluator.h.

Member Function Documentation

template<typename T >
T TsEvaluator< T >::Eval ( const TsTime time,
TsSide  side = TsRight 
) const

Evaluates the spline at the given time. Note that left side evals do not benefit from the cached segments.

Definition at line 123 of file evaluator.h.


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