NAP
Public Member Functions | Public Attributes | List of all members
FCurve< T, V > Class Template Reference

#include <fcurve.h>

Public Member Functions

 FCurve ()
 
 ~FCurve () override
 
evaluate (const T &t)
 
void invalidate ()
 
NAPAPI FCurve ()
 
NAPAPI FCurve ()
 
- Public Member Functions inherited from Resource
 Resource ()
 
- Public Member Functions inherited from Object
 Object ()
 
virtual ~Object ()
 
virtual bool init (utility::ErrorState &errorState)
 
virtual void onDestroy ()
 
 Object (Object &)=delete
 
Objectoperator= (const Object &)=delete
 
 Object (Object &&)=delete
 
Objectoperator= (Object &&)=delete
 

Public Attributes

std::vector< FCurvePoint< T, V > > mPoints
 
- Public Attributes inherited from Object
std::string mID
 Property: 'mID' unique name of the object. Used as an identifier by the system. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
static bool isIDProperty (rtti::Instance &object, const rtti::Property &property)
 

Description

template<typename T, typename V>
class nap::math::FCurve< T, V >

A 1-D curve that can be used to map one value to another. This resource can be used to animate a value over time. The times and values of this curve are unbounded.

Template Parameters
Ttype of the time parameter
Vtype of the value parameter
Inheritance diagram for FCurve< T, V >:
[legend]
Collaboration diagram for FCurve< T, V >:
[legend]

Constructor & Destructor Documentation

◆ FCurve() [1/3]

FCurve ( )

Default constructor

◆ ~FCurve()

~FCurve ( )
override

Destructor

◆ FCurve() [2/3]

NAPAPI FCurve ( )

◆ FCurve() [3/3]

NAPAPI FCurve ( )

Member Function Documentation

◆ evaluate()

V evaluate ( const T &  t)

Evaluate this curve at time t

Parameters
tpoint in time to get the interpolated curve value for
Returns
the evaluated value of the curve at time t

◆ invalidate()

void invalidate ( )

Mark curve as dirty and ensure points are sorted on next evaluation

Member Data Documentation

◆ mPoints

std::vector<FCurvePoint<T, V> > mPoints

The points that define this shape of this curve