NDEVR
API Documentation
GraphicsManager.h
1#pragma once
2#include <NDEVR/QTModelManager.h>
3namespace NDEVR
4{
68
81}
The equivelent of std::vector but with a bit more control.
Definition Buffer.hpp:58
Provides a constant, unmodifiable pointer that has shared ownership of a dynamically allocated object...
Definition Pointer.hpp:276
A hash-based key-value store, useful for quick associative lookups.
Definition Dictionary.h:64
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:356
Used for interfacing with a Graphics engine, such as Vulkan or OpenGL.
Stores a default rendering engine to be used with the application.
DynamicPointer< QCaptureManager > m_render_view_manager
The capture manager.
void updateActive(const DynamicPointer< GraphicsSession > &session, bool add_cameras=true) override
Updates which session is currently active.
DynamicPointer< GraphicsSession > m_active_session
The currently active graphics session.
virtual Buffer< DynamicPointer< GraphicsSession > > availableSessions() const override
Returns all available graphics sessions.
virtual const DynamicPointer< QCaptureManager > & captureManager()
Returns the capture manager.
virtual ~GraphicsManager()
Destructor.
GraphicsManager(QTModelManager *manager)
Constructs the graphics manager.
virtual void clearAll() override
Clears all graphics sessions and resources.
void removeRequest(const ConstPointer< CaptureRequest > &request) override
Removes a capture request.
virtual bool hasGraphicsSession(const DynamicPointer< GraphicsDevice > &device) override
Checks whether a graphics session exists for the given device.
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 canServiceCaptureRequests() const override
Checks whether the manager can service capture requests.
QTResourceListener * m_graphics_listener
Listener for graphics-related resource changes.
virtual void initCaptureManager()
Initializes the capture manager if not already created.
Dictionary< UUID, DynamicPointer< GraphicsSession > > m_graphics_sessions
All registered sessions keyed by device UUID.
QTModelManager * m_manager
The model manager.
virtual void addGraphicsSession(DynamicPointer< GraphicsSession > session, bool add_cameras=true) override
Adds a graphics session.
virtual bool requestHandleManagerUpdating() const override
Checks whether this manager handles its own updating.
void addRequest(const ConstPointer< CaptureRequest > &request) override
Adds a capture request.
Stores a default rendering engine to be used with the application, with logic for finding a enabled G...
GraphicsManagerBase * createManager(QTModelManager *manager) override
Creates a GraphicsManager instance for the given model manager.
A wrapper around DesignObjectLookup that provides signal and slot functionality and adds rendering ca...
A ResourceListener which will always be executed on the main UI thread and can be tied to a Qt Object...
Definition QTTools.h:493
The primary namespace for the NDEVR SDK.