NDEVR
API Documentation
GraphicsCameraManager

A structure for managing Viewport interactions with an NDEVR Rendering Engine. More...

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

Public Member Functions

 GraphicsCameraManager ()
 Default constructor.
 GraphicsCameraManager (const GraphicsCameraManager &m_pipeline)
 Copy constructor.
virtual ~GraphicsCameraManager ()
 Destructor.
UUID overrideMaterial () const
 Returns the override material UUID.
void setCamera (const UUID &camera)
 Sets the camera to manage.
const CameraUniformObjectuniformObject () const
 Returns the current camera uniform data.
virtual void updateUniformBuffer (GraphicsUpdateArguments &args)
 Updates the GPU uniform buffer from the current camera state.
bool useCameraMaterial () const
 Checks whether the camera material override is active.

Protected Member Functions

CameraUniformObject getCameraUniformObject (const Camera &camera, GraphicsUpdateArguments &args) const
 Builds a CameraUniformObject from a Camera and update arguments.

Protected Attributes

UUID m_camera
 UUID of the managed camera.
CameraUniformObject m_camera_uniform
 Current uniform data for the GPU.
Time m_last_updated_time
 Last time the uniform was updated.
bool m_needs_pipeline_update
 Whether the pipeline needs rebuilding.
bool m_needs_uniform_commit
 Whether the uniform buffer needs committing.
UUID m_override_material
 UUID of the material override (if any).
bool m_use_anisotropy
 Whether anisotropic filtering is enabled.
bool m_use_camera_material
 Whether camera-specific material is used.
bool m_uses_origin
 Whether origin-based precision is active.
Time m_visible_update_time = Time(0)
 Last time a visible change was detected.

Detailed Description

A structure for managing Viewport interactions with an NDEVR Rendering Engine.


Definition at line 73 of file GraphicsCameraManager.h.

Constructor & Destructor Documentation

◆ GraphicsCameraManager()

GraphicsCameraManager::GraphicsCameraManager ( const GraphicsCameraManager & m_pipeline)

Copy constructor.

Parameters
[in]m_pipelineThe manager to copy from.

References GraphicsCameraManager().

Member Function Documentation

◆ getCameraUniformObject()

CameraUniformObject GraphicsCameraManager::getCameraUniformObject ( const Camera & camera,
GraphicsUpdateArguments & args ) const
protected

Builds a CameraUniformObject from a Camera and update arguments.

Parameters
[in]cameraThe camera.
[in]argsThe update arguments.
Returns
The populated uniform object.

◆ overrideMaterial()

UUID GraphicsCameraManager::overrideMaterial ( ) const
inline

Returns the override material UUID.

Returns
The override material UUID.

Definition at line 94 of file GraphicsCameraManager.h.

References m_override_material.

◆ setCamera()

void GraphicsCameraManager::setCamera ( const UUID & camera)
inline

Sets the camera to manage.

Parameters
[in]cameraThe camera UUID.

Definition at line 85 of file GraphicsCameraManager.h.

References m_camera.

◆ uniformObject()

const CameraUniformObject & GraphicsCameraManager::uniformObject ( ) const
inline

Returns the current camera uniform data.

Returns
Reference to the uniform object.

Definition at line 97 of file GraphicsCameraManager.h.

References m_camera_uniform.

◆ updateUniformBuffer()

virtual void GraphicsCameraManager::updateUniformBuffer ( GraphicsUpdateArguments & args)
virtual

Updates the GPU uniform buffer from the current camera state.

Parameters
[in]argsThe graphics update arguments.

Reimplemented in GLESCameraManager.

◆ useCameraMaterial()

bool GraphicsCameraManager::useCameraMaterial ( ) const

Checks whether the camera material override is active.

Returns
True if using a camera-specific material.

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