Maria GDK 5.0.0.738
Documentation of native code in develop branch
Loading...
Searching...
No Matches
STK::KeyframeNodeAnimation Class Reference

#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< KeyframeNodeAnimationcopy (std::map< STK::MeshNode *, std::shared_ptr< STK::MeshNode > > &node_map)
 

Protected Attributes

std::string name_
 
std::vector< Keyframekeyframes_
 
std::vector< std::shared_ptr< MeshNode > > nodes_
 
int prev_i_ {0}
 

Detailed Description

KeyframeNodeAnimation - A keyframed node animation. This class contains a series of keyframes acting upon one or more mesh node transforms.


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