NL3D::CPlayListManager Class Reference

This class handles a list of pair PlayList/ChannelMixer RefPointer. More...

#include <play_list_manager.h>

List of all members.

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

Detailed Description

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()).

Author:
Lionel Berenguier
Nevrax France
Date:
2001

Definition at line 46 of file play_list_manager.h.


Member Typedef Documentation

CAnimationPlaylist* is just the key.

Definition at line 88 of file play_list_manager.h.


Constructor & Destructor Documentation

NL3D::CPlayListManager::CPlayListManager (  )  [inline]

Constructor.

Definition at line 51 of file play_list_manager.h.


Member Function Documentation

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().


Member Data Documentation

Definition at line 89 of file play_list_manager.h.

Referenced by addPlaylist(), animate(), deleteAll(), removePlaylist(), and setup().


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

Generated on Thu Jan 7 08:30:07 2010 for NeL by  doxygen 1.6.1