Flyby SDK v0.3.0
|
The base camera class. More...
#include <camera.h>
Public Member Functions | |
Camera () | |
The default constructor. | |
Camera (const std::string &name) | |
The name constructor. | |
void | take_picture () override |
Take a picture on the camera. | |
void | start_video_recording () override |
Start recording a video on the camera. | |
void | stop_video_recording () override |
Stop recording a video on the camera. | |
void | set_optical_zoom_level (int level) override |
Sets the optical zoom on the camera. | |
unsigned int | get_optical_zoom_level () override |
Gets the optical zoom on the camera. | |
std::vector< unsigned int > | get_optical_zoom_range () override |
Gets the optical zoom range on the camera. | |
ZoomType | get_optical_zoom_type () override |
Gets the optical zoom type on the camera. | |
void | set_digital_zoom_level (int level) override |
Sets the digital zoom on the camera. | |
unsigned int | get_digital_zoom_level () override |
Gets the digital zoom on the camera. | |
std::vector< unsigned int > | get_digital_zoom_range () override |
Gets the digital zoom range on the camera. | |
unsigned int | get_iso_level () override |
Gets the ISO level on the camera. | |
std::vector< unsigned int > | get_iso_range () override |
Gets the ISO range on the camera. | |
void | set_iso_level (unsigned int level) override |
Sets the ISO level on the camera. | |
unsigned int | get_shutter_speed () override |
Gets the shutter speed on the camera. | |
std::vector< unsigned int > | get_shutter_speed_range () override |
Gets the shutter speed range on the camera. | |
void | set_shutter_speed (unsigned int speed) override |
Sets the shutter speed on the camera. | |
ExposureProgramMode | get_exposure_program_mode () override |
Gets the exposure program mode. | |
void | set_exposure_program_mode (ExposureProgramMode mode) override |
Sets the exposure program mode. | |
float | get_aperture () override |
Gets the aperture. | |
std::vector< float > | get_aperture_range () override |
Gets the possible aperture values. | |
void | set_aperture (float aperture) override |
Sets the aperture. | |
std::string | get_white_balance () override |
Gets the white balance. | |
std::vector< std::string > | get_white_balance_options () override |
Gets the white balance options. | |
void | set_white_balance (std::string wb) override |
Sets the white balance. | |
FocusMode | get_focus_mode () override |
Gets the focus mode. | |
void | set_focus_mode (FocusMode mode) override |
Sets the focus mode. | |
unsigned int | get_focus_position () override |
Gets the focus position. | |
std::vector< unsigned int > | get_focus_position_range () override |
Gets the focus position range. | |
void | set_focus_position (unsigned int position) override |
Sets the focus position. | |
bool | get_zoom () const final |
Does the camera support zoom. | |
bool | get_gimbal () const final |
Is the camera mounted on a gimbal. | |
bool | get_picture () const final |
Does the camera support pictures. | |
bool | get_video () const final |
Does the camera support videos. | |
CameraType | get_type () const final |
Get the type of camera. | |
bool | is_recording () const final |
Get the recording status of the camera. | |
Protected Attributes | |
CameraType | m_type |
The camera type. | |
bool | m_picture { false } |
Can the camera take pictures. | |
bool | m_video { false } |
Can the camera take videos. | |
bool | m_zoom { false } |
Can the camera zoom. | |
bool | m_gimbal { false } |
Is the camera mounted on a controllable gimbal. | |
bool | m_is_recording { false } |
Is the camera currently recording. | |
The base camera class.
This class is should be extended by implementing functionality that is present. For example, a camera that can take pictures should override the take_picture function to control the camera to take a picture.
|
inlineexplicit |
The name constructor.
name | - the name of the camera |
|
inlineoverride |
Gets the aperture.
Should be overridden if a camera should implement this capability.
|
inlineoverride |
Gets the possible aperture values.
Should be overridden if a camera should implement this capability.
|
inlineoverride |
Gets the digital zoom on the camera.
Should be overridden if a camera should implement this capability.
|
inlineoverride |
Gets the digital zoom range on the camera.
Should be overridden if a camera should implement this capability.
|
inlineoverride |
Gets the exposure program mode.
Should be overridden if a camera should implement this capability.
|
inlineoverride |
Gets the focus mode.
Should be overridden if a camera should implement this capability.
|
inlineoverride |
Gets the focus position.
Should be overridden if a camera should implement this capability.
|
inlineoverride |
Gets the focus position range.
Should be overridden if a camera should implement this capability.
|
inlinenodiscardfinal |
Is the camera mounted on a gimbal.
|
inlineoverride |
Gets the ISO level on the camera.
Should be overridden if a camera should implement this capability.
|
inlineoverride |
Gets the ISO range on the camera.
Should be overridden if a camera should implement this capability.
|
inlineoverride |
Gets the optical zoom on the camera.
Should be overridden if a camera should implement this capability.
|
inlineoverride |
Gets the optical zoom range on the camera.
Should be overridden if a camera should implement this capability.
|
inlineoverride |
Gets the optical zoom type on the camera.
Should be overridden if a camera should implement this capability.
|
inlinenodiscardfinal |
Does the camera support pictures.
|
inlineoverride |
Gets the shutter speed on the camera.
Should be overridden if a camera should implement this capability.
|
inlineoverride |
Gets the shutter speed range on the camera.
Should be overridden if a camera should implement this capability.
|
inlinenodiscardfinal |
Get the type of camera.
|
inlinenodiscardfinal |
Does the camera support videos.
|
inlineoverride |
Gets the white balance.
Should be overridden if a camera should implement this capability.
|
inlineoverride |
Gets the white balance options.
Should be overridden if a camera should implement this capability.
|
inlinenodiscardfinal |
Does the camera support zoom.
|
inlinenodiscardfinal |
Get the recording status of the camera.
|
inlineoverride |
Sets the aperture.
Should be overridden if a camera should implement this capability.
aperture | - The aperture |
|
inlineoverride |
Sets the digital zoom on the camera.
Should be overridden if a camera should implement this capability.
level | - The zoom level |
|
inlineoverride |
Sets the exposure program mode.
Should be overridden if a camera should implement this capability.
mode | - The exposure program mode |
|
inlineoverride |
Sets the focus mode.
Should be overridden if a camera should implement this capability.
mode | - The focus mode |
|
inlineoverride |
Sets the focus position.
Should be overridden if a camera should implement this capability.
position | - The focus position |
|
inlineoverride |
Sets the ISO level on the camera.
Should be overridden if a camera should implement this capability.
level | - The ISO level (implementation dependant) |
|
inlineoverride |
Sets the optical zoom on the camera.
Should be overridden if a camera should implement this capability.
level | - The zoom level |
|
inlineoverride |
Sets the shutter speed on the camera.
Should be overridden if a camera should implement this capability.
speed | - The shutter speed (denominator) |
|
inlineoverride |
Sets the white balance.
Should be overridden if a camera should implement this capability.
wb | - The white balance |
|
inlineoverride |
Start recording a video on the camera.
Should be overridden if a camera should implement this capability.
|
inlineoverride |
Stop recording a video on the camera.
Should be overridden if a camera should implement this capability.
|
inlineoverride |
Take a picture on the camera.
Should be overridden if a camera should implement this capability.