PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::AnimationCurve< TDataType > Class Template Reference

#include <AnimationCurve.h>

Public Types

typedef TDataType::Real Real
 
typedef TDataType::Coord Coord
 
typedef ::dyno::Mat4f Mat
 

Public Member Functions

 AnimationCurve ()
 
 AnimationCurve (int size, Real dx, Real dy, Real dz)
 
 ~AnimationCurve ()
 
void set (int index, const std::vector< LongLong > &tim, const std::vector< Real > &val)
 
Real fbxTimeToSeconds (LongLong value)
 
LongLong secondsToFbxTime (Real value)
 
void setInitVal (Coord init)
 
Coord getCurveValueAlong (Real ptime)
 
Coord getCurveValueAll (Real ptime)
 
Coord getCurveValueCycle (Real ptime)
 

Public Attributes

int m_maxSize
 
int m_cur [3]
 
Real m_initVal [3]
 
Real m_endVal [3]
 
std::vector< LongLongm_times [3]
 
std::vector< Realm_values [3]
 

Detailed Description

template<typename TDataType>
class dyno::AnimationCurve< TDataType >

Definition at line 13 of file AnimationCurve.h.

Member Typedef Documentation

◆ Coord

template<typename TDataType>
typedef TDataType::Coord dyno::AnimationCurve< TDataType >::Coord

Definition at line 17 of file AnimationCurve.h.

◆ Mat

template<typename TDataType>
typedef ::dyno::Mat4f dyno::AnimationCurve< TDataType >::Mat

Definition at line 18 of file AnimationCurve.h.

◆ Real

template<typename TDataType>
typedef TDataType::Real dyno::AnimationCurve< TDataType >::Real

Definition at line 16 of file AnimationCurve.h.

Constructor & Destructor Documentation

◆ AnimationCurve() [1/2]

template<typename TDataType>
dyno::AnimationCurve< TDataType >::AnimationCurve ( )

Definition at line 10 of file AnimationCurve.cpp.

◆ AnimationCurve() [2/2]

template<typename TDataType>
dyno::AnimationCurve< TDataType >::AnimationCurve ( int size,
Real dx,
Real dy,
Real dz )

Definition at line 19 of file AnimationCurve.cpp.

◆ ~AnimationCurve()

template<typename TDataType>
dyno::AnimationCurve< TDataType >::~AnimationCurve ( )

Definition at line 31 of file AnimationCurve.cpp.

Member Function Documentation

◆ fbxTimeToSeconds()

template<typename TDataType>
Real dyno::AnimationCurve< TDataType >::fbxTimeToSeconds ( LongLong value)
inline

Definition at line 27 of file AnimationCurve.h.

◆ getCurveValueAll()

template<typename TDataType>
AnimationCurve< TDataType >::Coord dyno::AnimationCurve< TDataType >::getCurveValueAll ( Real ptime)

Definition at line 129 of file AnimationCurve.cpp.

Here is the call graph for this function:

◆ getCurveValueAlong()

template<typename TDataType>
AnimationCurve< TDataType >::Coord dyno::AnimationCurve< TDataType >::getCurveValueAlong ( Real ptime)

Definition at line 90 of file AnimationCurve.cpp.

Here is the call graph for this function:

◆ getCurveValueCycle()

template<typename TDataType>
AnimationCurve< TDataType >::Coord dyno::AnimationCurve< TDataType >::getCurveValueCycle ( Real ptime)

Definition at line 45 of file AnimationCurve.cpp.

Here is the call graph for this function:

◆ secondsToFbxTime()

template<typename TDataType>
LongLong dyno::AnimationCurve< TDataType >::secondsToFbxTime ( Real value)
inline

Definition at line 28 of file AnimationCurve.h.

Here is the caller graph for this function:

◆ set()

template<typename TDataType>
void dyno::AnimationCurve< TDataType >::set ( int index,
const std::vector< LongLong > & tim,
const std::vector< Real > & val )

Definition at line 36 of file AnimationCurve.cpp.

◆ setInitVal()

template<typename TDataType>
void dyno::AnimationCurve< TDataType >::setInitVal ( Coord init)
inline

Definition at line 30 of file AnimationCurve.h.

Member Data Documentation

◆ m_cur

template<typename TDataType>
int dyno::AnimationCurve< TDataType >::m_cur[3]

Definition at line 46 of file AnimationCurve.h.

◆ m_endVal

template<typename TDataType>
Real dyno::AnimationCurve< TDataType >::m_endVal[3]

Definition at line 48 of file AnimationCurve.h.

◆ m_initVal

template<typename TDataType>
Real dyno::AnimationCurve< TDataType >::m_initVal[3]

Definition at line 47 of file AnimationCurve.h.

◆ m_maxSize

template<typename TDataType>
int dyno::AnimationCurve< TDataType >::m_maxSize

Definition at line 44 of file AnimationCurve.h.

◆ m_times

template<typename TDataType>
std::vector<LongLong> dyno::AnimationCurve< TDataType >::m_times[3]

Definition at line 49 of file AnimationCurve.h.

◆ m_values

template<typename TDataType>
std::vector<Real> dyno::AnimationCurve< TDataType >::m_values[3]

Definition at line 50 of file AnimationCurve.h.


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