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

Manages loaded WoW model instances, providing animation reset, emitter update, and cleanup. More...

#include <ModelManager.h>

Inheritance diagram for ModelManager:
[legend]
Collaboration diagram for ModelManager:
[legend]

Public Member Functions

int add (GameFile *)
 Add a model from the given game file and return its handle.
 
 ModelManager ()
 
void resetAnim ()
 Reset animations on all managed models.
 
void updateEmitters (float dt)
 Update particle and ribbon emitters on all managed models.
 
void clear ()
 Remove and destroy all managed models.
 
- Public Member Functions inherited from SimpleManager
 SimpleManager ()
 
- Public Member Functions inherited from Manager< int >
 Manager ()=default
 
 ~Manager ()
 
virtual void del (int id)
 
void delbyname (const std::string &name)
 
virtual void doDelete (int)
 
bool has (const std::string &name)
 
int get (const std::string &name)
 
std::string get (int id)
 
void clear ()
 
void dump ()
 

Public Attributes

int v
 Internal version counter.
 
- Public Attributes inherited from Manager< int >
std::map< std::string, int > names
 
std::map< int, ManagedItem * > items
 

Additional Inherited Members

- Protected Member Functions inherited from SimpleManager
int nextID ()
 
- Protected Member Functions inherited from Manager< int >
void do_add (const std::string &name, int id, ManagedItem *item)
 

Detailed Description

Manages loaded WoW model instances, providing animation reset, emitter update, and cleanup.

Definition at line 6 of file ModelManager.h.

Constructor & Destructor Documentation

◆ ModelManager()

ModelManager::ModelManager ( )
inline

Definition at line 12 of file ModelManager.h.

Member Function Documentation

◆ add()

int ModelManager::add ( GameFile file)
virtual

Add a model from the given game file and return its handle.

Implements Manager< int >.

Definition at line 5 of file ModelManager.cpp.

Here is the call graph for this function:

◆ clear()

void ModelManager::clear ( )

Remove and destroy all managed models.

Definition at line 40 of file ModelManager.cpp.

Here is the call graph for this function:

◆ resetAnim()

void ModelManager::resetAnim ( )

Reset animations on all managed models.

Definition at line 23 of file ModelManager.cpp.

◆ updateEmitters()

void ModelManager::updateEmitters ( float  dt)

Update particle and ribbon emitters on all managed models.

Definition at line 32 of file ModelManager.cpp.

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

Member Data Documentation

◆ v

int ModelManager::v

Internal version counter.

Definition at line 16 of file ModelManager.h.


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