NDEVR
API Documentation
GraphicsManagerBaseabstract

Used for interfacing with a Graphics engine, such as Vulkan or OpenGL. More...

Inheritance diagram for GraphicsManagerBase:
[legend]
Collaboration diagram for GraphicsManagerBase:
[legend]

Public Member Functions

virtual void addGraphicsSession (DynamicPointer< GraphicsSession > session, bool add_cameras=true)=0
 Adds a new graphics session to the manager.
virtual void addRequest (const ConstPointer< CaptureRequest > &request)=0
 Adds a capture request to the queue.
virtual Buffer< DynamicPointer< GraphicsSession > > availableSessions () const =0
 Retrieves all available graphics sessions.
virtual bool canServiceCaptureRequests () const =0
 Checks whether the manager can service capture requests.
void captureManagerStateChangeSignal ()
 Emitted when the capture manager state changes.
virtual void clearAll ()=0
 Clears all sessions and pending requests.
virtual void executeRequest (const ConstPointer< CaptureRequest > &request)=0
 Immediately executes a capture request.
virtual const DynamicPointer< GraphicsSession > & graphicsSession (const DynamicPointer< GraphicsDevice > &device)=0
 Retrieves the graphics session associated with the given device.
void graphicsSessionChangeSignal ()
 Emitted when the set of graphics sessions changes.
virtual bool hasGraphicsSession (const DynamicPointer< GraphicsDevice > &device)=0
 Checks whether a graphics session exists for the given device.
virtual void removeRequest (const ConstPointer< CaptureRequest > &request)=0
 Removes a capture request from the queue.
virtual bool requestHandleManagerUpdating () const =0
 Checks whether this manager requests to handle its own updating.
virtual void updateActive (const DynamicPointer< GraphicsSession > &session, bool add_cameras=true)=0
 Updates the active state of a graphics session.

Detailed Description

Used for interfacing with a Graphics engine, such as Vulkan or OpenGL.


Definition at line 75 of file QTModelManager.h.

Member Function Documentation

◆ addGraphicsSession()

virtual void GraphicsManagerBase::addGraphicsSession ( DynamicPointer< GraphicsSession > session,
bool add_cameras = true )
pure virtual

Adds a new graphics session to the manager.

Parameters
[in]sessionThe graphics session to add.
[in]add_camerasWhether to add default cameras to the session.

Implemented in GraphicsManager.

◆ addRequest()

virtual void GraphicsManagerBase::addRequest ( const ConstPointer< CaptureRequest > & request)
pure virtual

Adds a capture request to the queue.

Parameters
[in]requestThe capture request to add.

Implemented in GraphicsManager.

◆ availableSessions()

virtual Buffer< DynamicPointer< GraphicsSession > > GraphicsManagerBase::availableSessions ( ) const
pure virtual

Retrieves all available graphics sessions.

Returns
A buffer of all available graphics sessions.

Implemented in GraphicsManager.

◆ canServiceCaptureRequests()

virtual bool GraphicsManagerBase::canServiceCaptureRequests ( ) const
pure virtual

Checks whether the manager can service capture requests.

Returns
True if capture requests can be serviced.

Implemented in GraphicsManager.

◆ executeRequest()

virtual void GraphicsManagerBase::executeRequest ( const ConstPointer< CaptureRequest > & request)
pure virtual

Immediately executes a capture request.

Parameters
[in]requestThe capture request to execute.

Implemented in GraphicsManager.

◆ graphicsSession()

virtual const DynamicPointer< GraphicsSession > & GraphicsManagerBase::graphicsSession ( const DynamicPointer< GraphicsDevice > & device)
pure virtual

Retrieves the graphics session associated with the given device.

Parameters
[in]deviceThe graphics device to query.
Returns
A reference to the graphics session for the device.

Implemented in GraphicsManager.

◆ hasGraphicsSession()

virtual bool GraphicsManagerBase::hasGraphicsSession ( const DynamicPointer< GraphicsDevice > & device)
pure virtual

Checks whether a graphics session exists for the given device.

Parameters
[in]deviceThe graphics device to query.
Returns
True if a graphics session exists for the device.

Implemented in GraphicsManager.

◆ removeRequest()

virtual void GraphicsManagerBase::removeRequest ( const ConstPointer< CaptureRequest > & request)
pure virtual

Removes a capture request from the queue.

Parameters
[in]requestThe capture request to remove.

Implemented in GraphicsManager.

◆ requestHandleManagerUpdating()

virtual bool GraphicsManagerBase::requestHandleManagerUpdating ( ) const
pure virtual

Checks whether this manager requests to handle its own updating.

Returns
True if the manager handles its own update cycle.

Implemented in GraphicsManager.

◆ updateActive()

virtual void GraphicsManagerBase::updateActive ( const DynamicPointer< GraphicsSession > & session,
bool add_cameras = true )
pure virtual

Updates the active state of a graphics session.

Parameters
[in]sessionThe graphics session to update.
[in]add_camerasWhether to add cameras during the update.

Implemented in GraphicsManager.

Referenced by GLESCameraViewFactory::canCreateView().


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