WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
Animated< T, D, Conv > Class Template Reference

Generic animated value class that reads keyframe data from M2 files. More...

#include <animated.h>

Public Member Functions

bool uses (ssize_t anim) const
 
getValue (ssize_t anim, size_t time)
 
void init (AnimationBlock &b, GameFile *f, std::vector< uint32 > &gs)
 
void init (AnimationBlock &b, GameFile &f, const modelAnimData &modelData)
 

Public Attributes

ssize_t type
 
ssize_t seq
 
std::vector< uint32globals
 
std::vector< size_t > times [MAX_ANIMATED]
 
std::vector< T > data [MAX_ANIMATED]
 
std::vector< T > in [MAX_ANIMATED]
 
std::vector< T > out [MAX_ANIMATED]
 
size_t sizes
 

Friends

std::ostream & operator<< (std::ostream &outVal, const Animated &v)
 

Detailed Description

template<class T, class D = T, class Conv = Identity<T>>
class Animated< T, D, Conv >

Generic animated value class that reads keyframe data from M2 files.

Template Parameters
TThe runtime data type to animate.
DThe data type stored on disk (defaults to T).
ConvA conversion functor with static T conv(D) (defaults to Identity).

Definition at line 160 of file animated.h.

Member Function Documentation

◆ getValue()

template<class T , class D = T, class Conv = Identity<T>>
T Animated< T, D, Conv >::getValue ( ssize_t  anim,
size_t  time 
)
inline

Definition at line 178 of file animated.h.

Here is the caller graph for this function:

◆ init() [1/2]

template<class T , class D = T, class Conv = Identity<T>>
void Animated< T, D, Conv >::init ( AnimationBlock b,
GameFile f,
const modelAnimData modelData 
)
inline

Definition at line 316 of file animated.h.

Here is the call graph for this function:

◆ init() [2/2]

template<class T , class D = T, class Conv = Identity<T>>
void Animated< T, D, Conv >::init ( AnimationBlock b,
GameFile f,
std::vector< uint32 > &  gs 
)
inline

Definition at line 264 of file animated.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ uses()

template<class T , class D = T, class Conv = Identity<T>>
bool Animated< T, D, Conv >::uses ( ssize_t  anim) const
inline

Definition at line 171 of file animated.h.

Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ operator<<

template<class T , class D = T, class Conv = Identity<T>>
std::ostream & operator<< ( std::ostream &  outVal,
const Animated< T, D, Conv > &  v 
)
friend

Definition at line 508 of file animated.h.

Member Data Documentation

◆ data

template<class T , class D = T, class Conv = Identity<T>>
std::vector<T> Animated< T, D, Conv >::data[MAX_ANIMATED]

Definition at line 166 of file animated.h.

◆ globals

template<class T , class D = T, class Conv = Identity<T>>
std::vector<uint32> Animated< T, D, Conv >::globals

Definition at line 164 of file animated.h.

◆ in

template<class T , class D = T, class Conv = Identity<T>>
std::vector<T> Animated< T, D, Conv >::in[MAX_ANIMATED]

Definition at line 168 of file animated.h.

◆ out

template<class T , class D = T, class Conv = Identity<T>>
std::vector<T> Animated< T, D, Conv >::out[MAX_ANIMATED]

Definition at line 168 of file animated.h.

◆ seq

template<class T , class D = T, class Conv = Identity<T>>
ssize_t Animated< T, D, Conv >::seq

Definition at line 163 of file animated.h.

◆ sizes

template<class T , class D = T, class Conv = Identity<T>>
size_t Animated< T, D, Conv >::sizes

Definition at line 169 of file animated.h.

◆ times

template<class T , class D = T, class Conv = Identity<T>>
std::vector<size_t> Animated< T, D, Conv >::times[MAX_ANIMATED]

Definition at line 165 of file animated.h.

◆ type

template<class T , class D = T, class Conv = Identity<T>>
ssize_t Animated< T, D, Conv >::type

Definition at line 163 of file animated.h.


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