Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
|
Non-copyable class of CameraController interface that can only be constructed once per Camera (Camera::Descriptor) More...
#include <cameracontroller.h>
Public Member Functions | |
UniqueCameraController (UniqueCameraController &&other) | |
UniqueCameraController & | operator= (UniqueCameraController &&other) |
UniqueCameraController () | |
Construct UniqueCameraController to reserve memory. More... | |
UniqueCameraController (Camera *camera, CameraController *controller) | |
Construct instance of UniqueCameraController of that can only be created for a specific Camera if another UniqueCameraController instance does not exist for it. More... | |
~UniqueCameraController () | |
Destructs UniqueCameraController instance and allow a new one to be acquired. More... | |
virtual void | setShuttertime (float shutterTime) |
Set camera shutter / exposure time in seconds. More... | |
virtual void | setGain (float gain) |
Set camera gain. More... | |
virtual float | getShuttertime () |
Get current shutter / exposure time in seconds. More... | |
virtual float | getGain () |
Get current camera gain factor. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from SR::CameraController | |
static void | addImplementation (CameraControlFunction *controlFunction, std::string cameraType) |
Static function to make a CameraController implementation available through the CameraController::control function. More... | |
static UniqueCameraController | control (Camera *camera) |
Attempt to gain control of camera sensor. More... | |
Non-copyable class of CameraController interface that can only be constructed once per Camera (Camera::Descriptor)
|
inline |
SR::UniqueCameraController::UniqueCameraController | ( | ) |
Construct UniqueCameraController to reserve memory.
SR::UniqueCameraController::UniqueCameraController | ( | Camera * | camera, |
CameraController * | controller | ||
) |
Construct instance of UniqueCameraController of that can only be created for a specific Camera if another UniqueCameraController instance does not exist for it.
CameraControllerUnavailableException | if the Camera is already being controlled through another UniqueCameraController |
SR::UniqueCameraController::~UniqueCameraController | ( | ) |
Destructs UniqueCameraController instance and allow a new one to be acquired.
|
virtual |
Get current camera gain factor.
A higher gain will produce brighter images but may affect image quality. Values produced by the sensor are multiplied by a factor derived from this gain value Implementations may vary.
Implements SR::CameraController.
|
virtual |
Get current shutter / exposure time in seconds.
A higher shutter time will produce brighter images but may increase latency. The effectiveness of changing the shutter time is also dependent on the aperture of the camera.
Implements SR::CameraController.
UniqueCameraController & SR::UniqueCameraController::operator= | ( | UniqueCameraController && | other | ) |
|
virtual |
Set camera gain.
A higher gain will produce brighter images but may affect image quality. Values produced by the sensor are multiplied by a factor derived from this gain value. Implementations may vary.
Implements SR::CameraController.
|
virtual |
Set camera shutter / exposure time in seconds.
A higher shutter time will produce brighter images but may increase latency. The effectiveness of changing the shutter time is also dependent on the aperture of the camera.
shutterTime | in seconds |
Implements SR::CameraController.