NL3D::CPlayListManagerUser Class Reference

#include <play_list_manager_user.h>

Inheritance diagram for NL3D::CPlayListManagerUser:

NL3D::UPlayListManager

Detailed Description

UPlayListManager implementation
Author:
Lionel Berenguier

Nevrax France

Date:
2001

Definition at line 49 of file play_list_manager_user.h.

Public Member Functions

virtual void animate (TGlobalAnimationTime time)
 CPlayListManagerUser ()
 Constructor.

virtual UPlayListcreatePlayList (UAnimationSet *animSet)
virtual void deletePlayList (UPlayList *playList)
virtual void setup (TGlobalAnimationTime time)

Private Attributes

CPlayListManager _PlayListManager
CPtrSet< CPlayListUser_PlayLists


Constructor & Destructor Documentation

NL3D::CPlayListManagerUser::CPlayListManagerUser  )  [inline]
 

Constructor.

Definition at line 59 of file play_list_manager_user.h.

References NL3D_MEM_PLAYLIST_MANAGER.

00060         {
00061                 NL3D_MEM_PLAYLIST_MANAGER
00062         }


Member Function Documentation

void NL3D::CPlayListManagerUser::animate TGlobalAnimationTime  time  )  [virtual]
 

Animate all the playlist. Only the globals channels are animated. NB: all AnimationTime are in second.

Implements NL3D::UPlayListManager.

Definition at line 65 of file play_list_manager_user.cpp.

References _PlayListManager, NL3D::CPlayListManager::animate(), H_AUTO, NL3D_MEM_PLAYLIST_MANAGER, and NL3D::TGlobalAnimationTime.

00066 {
00067         NL3D_MEM_PLAYLIST_MANAGER
00068                 H_AUTO( NL3D_Render_PlayListMgr_Animate );
00069         
00070         _PlayListManager.animate(time);
00071 }

UPlayList * NL3D::CPlayListManagerUser::createPlayList UAnimationSet animSet  )  [virtual]
 

Create a playlist, instance of an animation set. nlerror if(animSet==NULL).

Implements NL3D::UPlayListManager.

Definition at line 38 of file play_list_manager_user.cpp.

References NL3D::CPlayListUser::_ChannelMixer, NL3D::CPlayListUser::_PlayList, _PlayListManager, _PlayLists, NL3D::CPlayListManager::addPlaylist(), NL3D::CPtrSet< CPlayListUser >::insert(), NL3D_MEM_PLAYLIST_MANAGER, and nlerror.

00039 {
00040         NL3D_MEM_PLAYLIST_MANAGER
00041         if(!animSet)
00042                 nlerror("createPlayList(): animSet==NULL");
00043         
00044         CPlayListUser   *pl= new CPlayListUser( safe_cast<CAnimationSetUser*>(animSet)->_AnimationSet );
00045         _PlayLists.insert(pl);
00046 
00047         _PlayListManager.addPlaylist(&pl->_PlayList, &pl->_ChannelMixer);
00048 
00049         return pl;
00050 }

void NL3D::CPlayListManagerUser::deletePlayList UPlayList playList  )  [virtual]
 

Delete a playlist. nlerror if not found. no-op if playList==NULL.

Implements NL3D::UPlayListManager.

Definition at line 54 of file play_list_manager_user.cpp.

References _PlayListManager, _PlayLists, NL3D::CPtrSet< CPlayListUser >::erase(), NL3D_MEM_PLAYLIST_MANAGER, and NL3D::CPlayListManager::removePlaylist().

00055 {
00056         NL3D_MEM_PLAYLIST_MANAGER
00057         CPlayListUser   *pl= safe_cast<CPlayListUser*>(playList);
00058 
00059         _PlayListManager.removePlaylist(&pl->_PlayList);
00060         _PlayLists.erase(pl, "deletePlayList(): bad playList");
00061 }

void NL3D::CPlayListManagerUser::setup TGlobalAnimationTime  time  )  [virtual]
 

Setup all the playlist. NB: all AnimationTime are in second.

Implements NL3D::UPlayListManager.

Definition at line 75 of file play_list_manager_user.cpp.

References _PlayListManager, H_AUTO, NL3D_MEM_PLAYLIST_MANAGER, NL3D::CPlayListManager::setup(), and NL3D::TGlobalAnimationTime.

00076 {
00077         NL3D_MEM_PLAYLIST_MANAGER
00078         H_AUTO( NL3D_Render_PlayListMgr_Setup );
00079         
00080         _PlayListManager.setup(time);
00081 }


Field Documentation

CPlayListManager NL3D::CPlayListManagerUser::_PlayListManager [private]
 

Definition at line 52 of file play_list_manager_user.h.

Referenced by animate(), createPlayList(), deletePlayList(), and setup().

CPtrSet<CPlayListUser> NL3D::CPlayListManagerUser::_PlayLists [private]
 

Definition at line 53 of file play_list_manager_user.h.

Referenced by createPlayList(), and deletePlayList().


The documentation for this class was generated from the following files:
Generated on Tue Mar 16 07:01:20 2004 for NeL by doxygen 1.3.6