This class handles a list of pair PlayList/ChannelMixer RefPointer. More...
#include <play_list_manager.h>
Classes | |
| struct | CNode |
Public Member Functions | |
| CPlayListManager () | |
| Constructor. | |
| void | addPlaylist (CAnimationPlaylist *plist, CChannelMixer *chanMixer) |
| add a playlist/channelmixer to the manager. nlassert(plist). chanMixer replaced if playlist already IN. | |
| void | removePlaylist (CAnimationPlaylist *plist) |
| remove a playlist/channelmixer from the manager. nlassert(plist). no op if not here. | |
| void | animate (TGlobalAnimationTime time) |
| animate all the playlist: setupMixer() the channelMixer, and eval(false) (eval global part). | |
| void | setup (TGlobalAnimationTime time) |
| steup all the playlist: setupMixer() the channelMixer. | |
| void | deleteAll () |
| Perform a deletion of all pair playlist channel mixer. | |
Private Types | |
| typedef std::map < CAnimationPlaylist *, CNode > | TPlayListList |
| CAnimationPlaylist* is just the key. | |
Private Attributes | |
| TPlayListList | _List |
This class handles a list of pair PlayList/ChannelMixer RefPointer.
It is just a container, with a animate() method. PlayList/ChannelMixer are sotred with RefPtr. They are auto-removed from the list if the playlist or the channelmixer is deleted (done in animate()).
Definition at line 46 of file play_list_manager.h.
typedef std::map<CAnimationPlaylist*, CNode> NL3D::CPlayListManager::TPlayListList [private] |
CAnimationPlaylist* is just the key.
Definition at line 88 of file play_list_manager.h.
| NL3D::CPlayListManager::CPlayListManager | ( | ) | [inline] |
Constructor.
Definition at line 51 of file play_list_manager.h.
| void NL3D::CPlayListManager::addPlaylist | ( | CAnimationPlaylist * | plist, | |
| CChannelMixer * | chanMixer | |||
| ) |
add a playlist/channelmixer to the manager. nlassert(plist). chanMixer replaced if playlist already IN.
Definition at line 34 of file play_list_manager.cpp.
References _List, and nlassert.
Referenced by NL3D::CPlayListManagerUser::createPlayList(), and NL3D::CScene::setAutomaticAnimationSet().
| void NL3D::CPlayListManager::animate | ( | TGlobalAnimationTime | time | ) |
animate all the playlist: setupMixer() the channelMixer, and eval(false) (eval global part).
If a playlist/channelmixer has been deleted (RefPtr), the node is removed from the list.
Definition at line 54 of file play_list_manager.cpp.
References _List, NL3D::CPlayListManager::CNode::ChannelMixer, and NL3D::CPlayListManager::CNode::PlayList.
Referenced by NL3D::CScene::animate(), and NL3D::CPlayListManagerUser::animate().
| void NL3D::CPlayListManager::deleteAll | ( | ) |
Perform a deletion of all pair playlist channel mixer.
Definition at line 105 of file play_list_manager.cpp.
References _List, NL3D::CPlayListManager::CNode::ChannelMixer, and NL3D::CPlayListManager::CNode::PlayList.
Referenced by NL3D::CScene::release(), and NL3D::CScene::setAutomaticAnimationSet().
| void NL3D::CPlayListManager::removePlaylist | ( | CAnimationPlaylist * | plist | ) |
remove a playlist/channelmixer from the manager. nlassert(plist). no op if not here.
Definition at line 45 of file play_list_manager.cpp.
References _List, and nlassert.
Referenced by NL3D::CPlayListManagerUser::deletePlayList().
| void NL3D::CPlayListManager::setup | ( | TGlobalAnimationTime | time | ) |
steup all the playlist: setupMixer() the channelMixer.
If a playlist/channelmixer has been deleted (RefPtr), the node is removed from the list.
Definition at line 80 of file play_list_manager.cpp.
References _List, NL3D::CPlayListManager::CNode::ChannelMixer, and NL3D::CPlayListManager::CNode::PlayList.
Referenced by NL3D::CPlayListManagerUser::setup().
TPlayListList NL3D::CPlayListManager::_List [private] |
Definition at line 89 of file play_list_manager.h.
Referenced by addPlaylist(), animate(), deleteAll(), removePlaylist(), and setup().
1.6.1