Radium Engine  1.5.20
Loading...
Searching...
No Matches
Ra::Engine::Scene::SignalManager Class Reference

#include <Engine/Scene/SignalManager.hpp>

+ Collaboration diagram for Ra::Engine::Scene::SignalManager:

Public Types

using ItemObservable = Ra::Core::Utils::Observable<const ItemEntry&>
 Type for item (entity, component or render object) observable.
 
using FrameObservable = Ra::Core::Utils::Observable<>
 Type for frame observable.
 

Public Member Functions

void fireEntityCreated (const ItemEntry &entity) const
 Notifies all observers of an entity creation.
 
void fireEntityDestroyed (const ItemEntry &entity) const
 Notifies all observers of an entity removal.
 
void fireComponentAdded (const ItemEntry &component) const
 Notifies all observers of a component creation.
 
void fireComponentRemoved (const ItemEntry &component) const
 Notifies all observers of a component removal.
 
void fireRenderObjectAdded (const ItemEntry &ro) const
 Notifies all observers of a render object creation.
 
void fireRenderObjectRemoved (const ItemEntry &ro) const
 Notifies all observers of a render object removal.
 
void fireFrameEnded () const
 Notifies all observers of a end of frame event.
 
void setOn (bool on)
 Enable/disable the notification of observers.
 
ItemObservablegetEntityCreatedNotifier ()
 
ItemObservablegetEntityDestroyedNotifier ()
 
ItemObservablegetComponentCreatedNotifier ()
 
ItemObservablegetComponentDestroyedNotifier ()
 
ItemObservablegetRenderObjectCreatedNotifier ()
 
ItemObservablegetRenderObjectDestroyedNotifier ()
 
FrameObservablegetEndFrameNotifier ()
 

Detailed Description

This class is used to inform the external world of events happening in the engine. You can register a callback function which will be called any time the event happens. Signals are fired when an object of the engine (entity, component or render object) is either added or removed. Signals on entities, components and render objects send the item entry indicating the object that was added or removed.

Signals for new objects are fired just after they have been initialized and acquired by the object owning them. Signals for destroyed objects are fired just before they are removed from the object owning them and destroyed

Signals of end of frame send no parameters.

Definition at line 29 of file SignalManager.hpp.

Member Typedef Documentation

◆ FrameObservable

Type for frame observable.

Definition at line 57 of file SignalManager.hpp.

◆ ItemObservable

Type for item (entity, component or render object) observable.

Definition at line 55 of file SignalManager.hpp.

Member Function Documentation

◆ fireComponentAdded()

void Ra::Engine::Scene::SignalManager::fireComponentAdded ( const ItemEntry & component) const

Notifies all observers of a component creation.

Definition at line 45 of file SignalManager.cpp.

+ Here is the call graph for this function:

◆ fireComponentRemoved()

void Ra::Engine::Scene::SignalManager::fireComponentRemoved ( const ItemEntry & component) const

Notifies all observers of a component removal.

Definition at line 50 of file SignalManager.cpp.

+ Here is the call graph for this function:

◆ fireEntityCreated()

void Ra::Engine::Scene::SignalManager::fireEntityCreated ( const ItemEntry & entity) const

Notifies all observers of an entity creation.

Definition at line 35 of file SignalManager.cpp.

+ Here is the call graph for this function:

◆ fireEntityDestroyed()

void Ra::Engine::Scene::SignalManager::fireEntityDestroyed ( const ItemEntry & entity) const

Notifies all observers of an entity removal.

Definition at line 40 of file SignalManager.cpp.

+ Here is the call graph for this function:

◆ fireFrameEnded()

void Ra::Engine::Scene::SignalManager::fireFrameEnded ( ) const

Notifies all observers of a end of frame event.

Definition at line 64 of file SignalManager.cpp.

◆ fireRenderObjectAdded()

void Ra::Engine::Scene::SignalManager::fireRenderObjectAdded ( const ItemEntry & ro) const

Notifies all observers of a render object creation.

Definition at line 55 of file SignalManager.cpp.

+ Here is the call graph for this function:

◆ fireRenderObjectRemoved()

void Ra::Engine::Scene::SignalManager::fireRenderObjectRemoved ( const ItemEntry & ro) const

Notifies all observers of a render object removal.

Definition at line 59 of file SignalManager.cpp.

+ Here is the call graph for this function:

◆ getComponentCreatedNotifier()

SignalManager::ItemObservable & Ra::Engine::Scene::SignalManager::getComponentCreatedNotifier ( )

Definition at line 15 of file SignalManager.cpp.

◆ getComponentDestroyedNotifier()

SignalManager::ItemObservable & Ra::Engine::Scene::SignalManager::getComponentDestroyedNotifier ( )

Definition at line 19 of file SignalManager.cpp.

◆ getEndFrameNotifier()

SignalManager::FrameObservable & Ra::Engine::Scene::SignalManager::getEndFrameNotifier ( )

Definition at line 31 of file SignalManager.cpp.

◆ getEntityCreatedNotifier()

SignalManager::ItemObservable & Ra::Engine::Scene::SignalManager::getEntityCreatedNotifier ( )

Access to the observable members

Definition at line 7 of file SignalManager.cpp.

◆ getEntityDestroyedNotifier()

SignalManager::ItemObservable & Ra::Engine::Scene::SignalManager::getEntityDestroyedNotifier ( )

Definition at line 11 of file SignalManager.cpp.

◆ getRenderObjectCreatedNotifier()

SignalManager::ItemObservable & Ra::Engine::Scene::SignalManager::getRenderObjectCreatedNotifier ( )

Definition at line 23 of file SignalManager.cpp.

◆ getRenderObjectDestroyedNotifier()

SignalManager::ItemObservable & Ra::Engine::Scene::SignalManager::getRenderObjectDestroyedNotifier ( )

Definition at line 27 of file SignalManager.cpp.

◆ setOn()

void Ra::Engine::Scene::SignalManager::setOn ( bool on)
inline

Enable/disable the notification of observers.

Definition at line 52 of file SignalManager.hpp.


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