![]() |
Maria GDK 5.0.0.738
Documentation of native code in develop branch
|
#include <StkKeyframeNodeAnimation.h>
Public Member Functions | |
void | setName (const std::string &name) |
const std::string & | getName () const |
const std::vector< Keyframe > & | getKeyframes () const |
double | getStartTime () const |
Get the time stamp of the first keyframe. | |
double | getEndTime () const |
Get the time stamp of the last keyframe. | |
double | getDuration () const |
Get the total duration of the animation. | |
void | addKeyframe (const Keyframe &kf) |
void | addNode (const std::shared_ptr< MeshNode > &node) |
const std::vector< std::shared_ptr< MeshNode > > & | getNodes () const |
bool | interpolate (double t, Keyframe &out) const |
void | update (double t) |
std::shared_ptr< KeyframeNodeAnimation > | copy (std::map< STK::MeshNode *, std::shared_ptr< STK::MeshNode > > &node_map) |
Protected Attributes | |
std::string | name_ |
std::vector< Keyframe > | keyframes_ |
std::vector< std::shared_ptr< MeshNode > > | nodes_ |
int | prev_i_ {0} |
KeyframeNodeAnimation - A keyframed node animation. This class contains a series of keyframes acting upon one or more mesh node transforms.