Manages a collection of timeline handlers. More...
#include <STimerlineHandlerMgr.h>
Public Member Functions | |
STimerlineHandlerMgr (void) | |
Constructor. | |
~STimerlineHandlerMgr (void) | |
Destructor. | |
bool | RegisterTimelineHandler (ITimelineHandler *pHandler) |
Registers a timeline handler. | |
bool | UnregisterTimelineHandler (ITimelineHandler *pHandler) |
Unregisters a timeline handler. | |
bool | IsEmpty () const |
Checks if the manager is empty (no handlers registered). | |
void | OnNextFrame () OVERRIDE |
Called when the next frame is ready. | |
![]() | |
void | OnNextFrame () PURE |
下一个动画帧处理接口 | |
Protected Types | |
typedef SMap< ITimelineHandler *, bool > | TLMAP |
Protected Attributes | |
TLMAP | m_mapHandlers |
Manages a collection of timeline handlers.
This class manages multiple timeline handlers, allowing them to be registered and unregistered. It implements the ITimelineHandler interface and forwards the OnNextFrame notification to all registered handlers.
Definition at line 16 of file STimerlineHandlerMgr.h.
|
protected |
Definition at line 57 of file STimerlineHandlerMgr.h.
SNSBEGIN STimerlineHandlerMgr::STimerlineHandlerMgr | ( | void | ) |
Constructor.
Definition at line 5 of file STimerlineHandlerMgr.cpp.
STimerlineHandlerMgr::~STimerlineHandlerMgr | ( | void | ) |
Destructor.
Definition at line 9 of file STimerlineHandlerMgr.cpp.
bool STimerlineHandlerMgr::IsEmpty | ( | ) | const |
Checks if the manager is empty (no handlers registered).
Definition at line 50 of file STimerlineHandlerMgr.cpp.
void STimerlineHandlerMgr::OnNextFrame | ( | ) |
Called when the next frame is ready.
THIS_ | Pointer to the current instance. This method forwards the OnNextFrame notification to all registered timeline handlers. |
Definition at line 26 of file STimerlineHandlerMgr.cpp.
bool STimerlineHandlerMgr::RegisterTimelineHandler | ( | ITimelineHandler * | pHandler | ) |
Registers a timeline handler.
pHandler | Pointer to the ITimelineHandler to register. |
Definition at line 13 of file STimerlineHandlerMgr.cpp.
bool STimerlineHandlerMgr::UnregisterTimelineHandler | ( | ITimelineHandler * | pHandler | ) |
Unregisters a timeline handler.
pHandler | Pointer to the ITimelineHandler to unregister. |
Definition at line 21 of file STimerlineHandlerMgr.cpp.
|
protected |
Definition at line 58 of file STimerlineHandlerMgr.h.