Number5
Visualisierung 2 Project - Florian Schober (0828151, f.schober@live.com), Andreas Walch (0926780, walch.andreas89@gmail.com)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
Scene::NodeAnimation Class Reference

Classes

struct  Frame
 

Public Member Functions

bool transformationByTime (float const time, OUT mat4 &result)
 

Private Member Functions

template<typename T >
interpolate (vector< Frame< T >> const &frames, float const time)
 
template<typename T >
void nearestFrames (vector< Frame< T >> const &frames, float const time, OUT Frame< T > const *&prev, OUT Frame< T > const *&next)
 

Private Attributes

vector< Frame< vec3 > > m_positions
 
vector< Frame< vec3 > > m_scalings
 
vector< Frame< quat > > m_rotations
 

Friends

class Scene
 

Detailed Description

Scene::NodeAnimation contains information about the animation of one node. It is basically a set of key-frames.

Definition at line 172 of file Scene.hpp.

Member Function Documentation

T interpolate ( vector< Frame< T >> const &  frames,
float const  time 
)
inlineprivate

Computes the value between keyframes

Parameters
framesThe keyframes, which should be used
timeThe time-stamp at which to compute
Returns
The computed value

Definition at line 209 of file Scene.hpp.

void nearestFrames ( vector< Frame< T >> const &  frames,
float const  time,
OUT Frame< T > const *&  prev,
OUT Frame< T > const *&  next 
)
inlineprivate

Finds the previous and next key-frame to a certain time-stamp.

Parameters
framesThe keyframes, which should be used
timeThe time-stamp
prevThe resulting previous-keyframe
nextThe resulting next-keyframe

Definition at line 235 of file Scene.hpp.

bool transformationByTime ( float const  time,
OUT mat4 &  result 
)

Computes the transformation at a certain time-stamp.

Parameters
timeThe time-stamp
resultThe resulting transformation
Returns
Always true.

Definition at line 752 of file Scene.cpp.

Friends And Related Function Documentation

friend class Scene
friend

Definition at line 190 of file Scene.hpp.

Member Data Documentation

vector<Frame<vec3> > m_positions
private

A set of key-frames for position-transformations, ordered by time-stamp

Definition at line 186 of file Scene.hpp.

vector<Frame<quat> > m_rotations
private

A set of key-frames for rotation-transformations, ordered by time-stamp

Definition at line 188 of file Scene.hpp.

vector<Frame<vec3> > m_scalings
private

A set of key-frames for scaling-transformations, ordered by time-stamp

Definition at line 187 of file Scene.hpp.


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