![]() |
NDEVR
API Documentation
|
A common interface responsible for managing specific actions with a Gaphics engine, such as Vulkan or OpenGL. More...
Public Member Functions | |
| GraphicsManager (QTModelManager *manager) | |
| Constructs the graphics manager. | |
| virtual | ~GraphicsManager () |
| Destructor. | |
| virtual void | addGraphicsSession (DynamicPointer< GraphicsSession > session, bool add_cameras=true) override |
| Adds a graphics session. | |
| void | addRequest (const ConstPointer< CaptureRequest > &request) override |
| Adds a capture request. | |
| virtual Buffer< DynamicPointer< GraphicsSession > > | availableSessions () const override |
| Returns all available graphics sessions. | |
| virtual bool | canServiceCaptureRequests () const override |
| Checks whether the manager can service capture requests. | |
| virtual const DynamicPointer< QCaptureManager > & | captureManager () |
| Returns the capture manager. | |
| virtual void | clearAll () override |
| Clears all graphics sessions and resources. | |
| void | executeRequest (const ConstPointer< CaptureRequest > &request) override |
| Immediately executes a capture request. | |
| virtual const DynamicPointer< GraphicsSession > & | graphicsSession (const DynamicPointer< GraphicsDevice > &device) override |
| Returns the graphics session for the given device. | |
| virtual bool | hasGraphicsSession (const DynamicPointer< GraphicsDevice > &device) override |
| Checks whether a graphics session exists for the given device. | |
| virtual void | initCaptureManager () |
| Initializes the capture manager if not already created. | |
| void | removeRequest (const ConstPointer< CaptureRequest > &request) override |
| Removes a capture request. | |
| virtual bool | requestHandleManagerUpdating () const override |
| Checks whether this manager handles its own updating. | |
| void | updateActive (const DynamicPointer< GraphicsSession > &session, bool add_cameras=true) override |
| Updates which session is currently active. | |
| Public Member Functions inherited from GraphicsManagerBase | |
| void | captureManagerStateChangeSignal () |
| Emitted when the capture manager state changes. | |
| void | graphicsSessionChangeSignal () |
| Emitted when the set of graphics sessions changes. | |
Protected Attributes | |
| DynamicPointer< GraphicsSession > | m_active_session |
| The currently active graphics session. | |
| QTResourceListener * | m_graphics_listener = nullptr |
| Listener for graphics-related resource changes. | |
| Dictionary< UUID, DynamicPointer< GraphicsSession > > | m_graphics_sessions |
| All registered sessions keyed by device UUID. | |
| QTModelManager * | m_manager |
| The model manager. | |
| DynamicPointer< QCaptureManager > | m_render_view_manager |
| The capture manager. | |
A common interface responsible for managing specific actions with a Gaphics engine, such as Vulkan or OpenGL.
Definition at line 11 of file GraphicsManager.h.
| GraphicsManager::GraphicsManager | ( | QTModelManager * | manager | ) |
Constructs the graphics manager.
| [in] | manager | The model manager. |
|
overridevirtual |
Adds a graphics session.
| [in] | session | The session to add. |
| [in] | add_cameras | Whether to register existing cameras. |
Implements GraphicsManagerBase.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Checks whether the manager can service capture requests.
Implements GraphicsManagerBase.
|
virtual |
Returns the capture manager.
|
overridevirtual |
Immediately executes a capture request.
| [in] | request | The capture request. |
Implements GraphicsManagerBase.
|
overridevirtual |
Returns the graphics session for the given device.
| [in] | device | The graphics device. |
Implements GraphicsManagerBase.
|
overridevirtual |
Checks whether a graphics session exists for the given device.
| [in] | device | The graphics device. |
Implements GraphicsManagerBase.
|
overridevirtual |
Removes a capture request.
| [in] | request | The capture request. |
Implements GraphicsManagerBase.
|
overridevirtual |
Checks whether this manager handles its own updating.
Implements GraphicsManagerBase.
|
overridevirtual |
Updates which session is currently active.
| [in] | session | The session to activate. |
| [in] | add_cameras | Whether to register existing cameras. |
Implements GraphicsManagerBase.