Radium Engine
1.5.20
|
DefaultCameraManager. A simple Camera Manager with a list of Cameras. More...
#include <Engine/Scene/DefaultCameraManager.hpp>
Public Member Functions | |
const CameraComponent * | getCamera (size_t cam) const override |
Return the cam-th camera. | |
void | addCamera (CameraComponent *cam) override |
Add cam for management. | |
Public Member Functions inherited from Ra::Engine::Scene::CameraManager | |
CameraManager () | |
Constructor. | |
CameraManager (const CameraManager &)=delete | |
CameraManager & | operator= (const CameraManager &)=delete |
~CameraManager () override=default | |
Virtual destructor. | |
virtual Core::Utils::Index | getCameraIndex (const CameraComponent *cam) |
virtual void | initialize () |
Add a default camera. | |
void | activate (Core::Utils::Index index) |
void | updateActiveCameraData () |
update the active camera data | |
virtual size_t | count () const |
Number of managed Cameras. | |
void | generateTasks (Core::TaskQueue *taskQueue, const Engine::FrameInfo &frameInfo) override |
Pure virtual method to be overridden by any system. Must register in taskQueue the operations that must be done ate each frame. | |
void | handleAssetLoading (Entity *entity, const Core::Asset::FileData *data) override |
Ra::Core::Asset::Camera * | getActiveCamera () |
Get the pointer on the active camera data. | |
Core::Utils::Index | getActiveCameraIndex () const |
Get the index of the currently active camera. | |
void | resetActiveCamera () |
reset the active camera data to default camera | |
Core::Utils::Observable< Core::Utils::Index > & | activeCameraObservers () |
get a ref to active camera observers to add/remove an observer | |
Public Member Functions inherited from Ra::Engine::Scene::System | |
std::vector< Component * > | getEntityComponents (const Entity *entity) |
void | addComponent (Entity *entity, Component *component) |
Additional Inherited Members | |
Static Public Attributes inherited from Ra::Engine::Scene::CameraManager | |
static Ra::Core::Asset::Camera | defaultCamera |
Protected Member Functions inherited from Ra::Engine::Scene::CameraManager | |
void | registerComponent (const Entity *entity, Component *component) final |
void | unregisterComponent (const Entity *entity, Component *component) final |
void | unregisterAllComponents (const Entity *entity) final |
Protected Member Functions inherited from Ra::Engine::Scene::System | |
Protected Attributes inherited from Ra::Engine::Scene::CameraManager | |
std::unique_ptr< CameraStorage > | m_data { nullptr } |
Stores the object that stores the Cameras... | |
Ra::Core::Asset::Camera | m_activeCamera |
active camera data, active camera hasn't any component just pure data. | |
Core::Utils::Index | m_activeIndex |
active camera index | |
Core::Utils::Observable< Core::Utils::Index > | m_activeCameraObservers |
Observers on active camera changes. | |
Protected Attributes inherited from Ra::Engine::Scene::System | |
std::vector< std::pair< const Entity *, Component * > > | m_components |
List of active components. | |
DefaultCameraManager. A simple Camera Manager with a list of Cameras.
Definition at line 36 of file DefaultCameraManager.hpp.
Ra::Engine::Scene::DefaultCameraManager::DefaultCameraManager | ( | ) |
Definition at line 12 of file DefaultCameraManager.cpp.
|
overridevirtual |
Add cam
for management.
Implements Ra::Engine::Scene::CameraManager.
Definition at line 21 of file DefaultCameraManager.cpp.
|
overridevirtual |
Return the cam-th
camera.
Implements Ra::Engine::Scene::CameraManager.
Definition at line 16 of file DefaultCameraManager.cpp.