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

DefaultCameraManager. A simple Camera Manager with a list of Cameras. More...

#include <Engine/Scene/DefaultCameraManager.hpp>

+ Inheritance diagram for Ra::Engine::Scene::DefaultCameraManager:
+ Collaboration diagram for Ra::Engine::Scene::DefaultCameraManager:

Public Member Functions

const CameraComponentgetCamera (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
 
CameraManageroperator= (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::CameragetActiveCamera ()
 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< CameraStoragem_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.
 

Detailed Description

DefaultCameraManager. A simple Camera Manager with a list of Cameras.

Definition at line 36 of file DefaultCameraManager.hpp.

Constructor & Destructor Documentation

◆ DefaultCameraManager()

Ra::Engine::Scene::DefaultCameraManager::DefaultCameraManager ( )

Definition at line 12 of file DefaultCameraManager.cpp.

Member Function Documentation

◆ addCamera()

void Ra::Engine::Scene::DefaultCameraManager::addCamera ( CameraComponent * cam)
overridevirtual

Add cam for management.

Implements Ra::Engine::Scene::CameraManager.

Definition at line 21 of file DefaultCameraManager.cpp.

+ Here is the call graph for this function:

◆ getCamera()

const CameraComponent * Ra::Engine::Scene::DefaultCameraManager::getCamera ( size_t cam) const
overridevirtual

Return the cam-th camera.

Implements Ra::Engine::Scene::CameraManager.

Definition at line 16 of file DefaultCameraManager.cpp.


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