WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
Loading...
Searching...
No Matches
AnimManager Class Reference

Manages animation playback for a WoWModel, supporting up to 4 queued animations, a secondary (upper-body) animation, and independent mouth movement. More...

#include <AnimManager.h>

Collaboration diagram for AnimManager:
[legend]

Public Member Functions

 AnimManager (WoWModel &m)
 
 ~AnimManager ()
 
void SetCount (int count)
 
void AddAnim (unsigned int id, short loop)
 
void SetAnim (short index, unsigned int id, short loop)
 
void SetSecondary (int id)
 
void ClearSecondary ()
 
ssize_t GetSecondaryID ()
 
size_t GetSecondaryFrame ()
 
void SetSecondaryCount (int count)
 
size_t GetSecondaryCount ()
 
void SetMouth (int id)
 
void ClearMouth ()
 
ssize_t GetMouthID ()
 
size_t GetMouthFrame ()
 
void SetMouthSpeed (float speed)
 
void Play ()
 
void Stop ()
 
void Pause (bool force=false)
 
void Next ()
 
void Prev ()
 
int Tick (int time)
 
size_t GetFrameCount ()
 
size_t GetFrame ()
 
void SetFrame (size_t f)
 
void SetSpeed (float speed)
 
float GetSpeed ()
 
void PrevFrame ()
 
void NextFrame ()
 
void Clear ()
 
void Reset ()
 
bool IsPaused ()
 
size_t GetAnim ()
 
void ForceModelUpdate (float dt)
 

Private Attributes

WoWModelmodel
 
bool Paused
 
AnimInfo animList [4]
 
size_t Frame
 
size_t TotalFrames
 
ssize_t AnimIDSecondary
 
size_t FrameSecondary
 
size_t SecondaryCount
 
ssize_t AnimIDMouth
 
size_t FrameMouth
 
short Count
 
short PlayIndex
 
short CurLoop
 
float Speed
 
float mouthSpeed
 

Detailed Description

Manages animation playback for a WoWModel, supporting up to 4 queued animations, a secondary (upper-body) animation, and independent mouth movement.

Definition at line 23 of file AnimManager.h.

Constructor & Destructor Documentation

◆ AnimManager()

AnimManager::AnimManager ( WoWModel m)

Definition at line 7 of file AnimManager.cpp.

◆ ~AnimManager()

AnimManager::~AnimManager ( )
default

Member Function Documentation

◆ AddAnim()

void AnimManager::AddAnim ( unsigned int  id,
short  loop 
)

Definition at line 42 of file AnimManager.cpp.

Here is the caller graph for this function:

◆ Clear()

void AnimManager::Clear ( )

Definition at line 233 of file AnimManager.cpp.

Here is the call graph for this function:

◆ ClearMouth()

void AnimManager::ClearMouth ( )
inline

Definition at line 75 of file AnimManager.h.

Here is the caller graph for this function:

◆ ClearSecondary()

void AnimManager::ClearSecondary ( )
inline

Definition at line 62 of file AnimManager.h.

Here is the caller graph for this function:

◆ ForceModelUpdate()

void AnimManager::ForceModelUpdate ( float  dt)

Definition at line 243 of file AnimManager.cpp.

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

◆ GetAnim()

size_t AnimManager::GetAnim ( )
inline

Definition at line 108 of file AnimManager.h.

◆ GetFrame()

size_t AnimManager::GetFrame ( )
inline

Definition at line 95 of file AnimManager.h.

Here is the caller graph for this function:

◆ GetFrameCount()

size_t AnimManager::GetFrameCount ( )

Definition at line 183 of file AnimManager.cpp.

Here is the caller graph for this function:

◆ GetMouthFrame()

size_t AnimManager::GetMouthFrame ( )
inline

Definition at line 77 of file AnimManager.h.

Here is the caller graph for this function:

◆ GetMouthID()

ssize_t AnimManager::GetMouthID ( )
inline

Definition at line 76 of file AnimManager.h.

Here is the caller graph for this function:

◆ GetSecondaryCount()

size_t AnimManager::GetSecondaryCount ( )
inline

Definition at line 66 of file AnimManager.h.

Here is the caller graph for this function:

◆ GetSecondaryFrame()

size_t AnimManager::GetSecondaryFrame ( )
inline

Definition at line 64 of file AnimManager.h.

Here is the caller graph for this function:

◆ GetSecondaryID()

ssize_t AnimManager::GetSecondaryID ( )
inline

Definition at line 63 of file AnimManager.h.

Here is the caller graph for this function:

◆ GetSpeed()

float AnimManager::GetSpeed ( )
inline

Definition at line 98 of file AnimManager.h.

◆ IsPaused()

bool AnimManager::IsPaused ( )
inline

Definition at line 106 of file AnimManager.h.

Here is the caller graph for this function:

◆ Next()

void AnimManager::Next ( )

Definition at line 100 of file AnimManager.cpp.

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

◆ NextFrame()

void AnimManager::NextFrame ( )

Definition at line 188 of file AnimManager.cpp.

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

◆ Pause()

void AnimManager::Pause ( bool  force = false)

Definition at line 92 of file AnimManager.cpp.

Here is the caller graph for this function:

◆ Play()

void AnimManager::Play ( )

Definition at line 74 of file AnimManager.cpp.

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

◆ Prev()

void AnimManager::Prev ( )

Definition at line 127 of file AnimManager.cpp.

Here is the call graph for this function:

◆ PrevFrame()

void AnimManager::PrevFrame ( )

Definition at line 196 of file AnimManager.cpp.

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

◆ Reset()

void AnimManager::Reset ( )
inline

Definition at line 104 of file AnimManager.h.

◆ SetAnim()

void AnimManager::SetAnim ( short  index,
unsigned int  id,
short  loop 
)

Definition at line 52 of file AnimManager.cpp.

Here is the caller graph for this function:

◆ SetCount()

void AnimManager::SetCount ( int  count)

Definition at line 37 of file AnimManager.cpp.

◆ SetFrame()

void AnimManager::SetFrame ( size_t  f)

Definition at line 204 of file AnimManager.cpp.

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

◆ SetMouth()

void AnimManager::SetMouth ( int  id)
inline

Definition at line 69 of file AnimManager.h.

Here is the caller graph for this function:

◆ SetMouthSpeed()

void AnimManager::SetMouthSpeed ( float  speed)
inline

Definition at line 79 of file AnimManager.h.

Here is the caller graph for this function:

◆ SetSecondary()

void AnimManager::SetSecondary ( int  id)
inline

Definition at line 56 of file AnimManager.h.

Here is the caller graph for this function:

◆ SetSecondaryCount()

void AnimManager::SetSecondaryCount ( int  count)
inline

Definition at line 65 of file AnimManager.h.

◆ SetSpeed()

void AnimManager::SetSpeed ( float  speed)
inline

Definition at line 97 of file AnimManager.h.

Here is the caller graph for this function:

◆ Stop()

void AnimManager::Stop ( )

Definition at line 83 of file AnimManager.cpp.

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

◆ Tick()

int AnimManager::Tick ( int  time)

Definition at line 149 of file AnimManager.cpp.

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

Member Data Documentation

◆ AnimIDMouth

ssize_t AnimManager::AnimIDMouth
private

Definition at line 38 of file AnimManager.h.

◆ AnimIDSecondary

ssize_t AnimManager::AnimIDSecondary
private

Definition at line 34 of file AnimManager.h.

◆ animList

AnimInfo AnimManager::animList[4]
private

Definition at line 29 of file AnimManager.h.

◆ Count

short AnimManager::Count
private

Definition at line 41 of file AnimManager.h.

◆ CurLoop

short AnimManager::CurLoop
private

Definition at line 43 of file AnimManager.h.

◆ Frame

size_t AnimManager::Frame
private

Definition at line 31 of file AnimManager.h.

◆ FrameMouth

size_t AnimManager::FrameMouth
private

Definition at line 39 of file AnimManager.h.

◆ FrameSecondary

size_t AnimManager::FrameSecondary
private

Definition at line 35 of file AnimManager.h.

◆ model

WoWModel& AnimManager::model
private

Definition at line 25 of file AnimManager.h.

◆ mouthSpeed

float AnimManager::mouthSpeed
private

Definition at line 46 of file AnimManager.h.

◆ Paused

bool AnimManager::Paused
private

Definition at line 27 of file AnimManager.h.

◆ PlayIndex

short AnimManager::PlayIndex
private

Definition at line 42 of file AnimManager.h.

◆ SecondaryCount

size_t AnimManager::SecondaryCount
private

Definition at line 36 of file AnimManager.h.

◆ Speed

float AnimManager::Speed
private

Definition at line 45 of file AnimManager.h.

◆ TotalFrames

size_t AnimManager::TotalFrames
private

Definition at line 32 of file AnimManager.h.


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