trikRuntime
|
Class for camera device instantiation. More...
#include <cameraDevice.h>
Public Member Functions | |
CameraDevice (const QString &mediaPath, const trikKernel::Configurer &configurer, trikHal::HardwareAbstractionInterface &hardwareAbstraction) | |
CameraDevice constructor. More... | |
QVector< uint8_t > | getPhoto () override |
Get photo as a vector of uint8t in RGB 888 format. More... | |
Status | status () const override |
Returns current status of the device. More... | |
~CameraDevice () override=default | |
Public Member Functions inherited from trikControl::CameraDeviceInterface | |
~CameraDeviceInterface () override=default | |
Public Member Functions inherited from trikControl::DeviceInterface | |
DeviceInterface ()=default | |
virtual | ~DeviceInterface ()=default |
Additional Inherited Members | |
Public Types inherited from trikControl::DeviceInterface | |
enum | Status { Status::permanentFailure, Status::temporaryFailure, Status::off, Status::starting, Status::ready, Status::stopping } |
Device status. More... | |
Static Public Member Functions inherited from trikControl::CameraDeviceInterface | |
static QVector< uint8_t > | qImageToQVector (const QImage &imgOrig) |
Convert QImage to QVector of uint8_t in RGB 888 format. More... | |
Static Public Member Functions inherited from trikControl::DeviceInterface | |
static Status | combine (const DeviceInterface &underlying, const DeviceInterface::Status &dependent) |
Helper method to return status of a device relying on other device to work. More... | |
Class for camera device instantiation.
trikControl::CameraDevice::CameraDevice | ( | const QString & | mediaPath, |
const trikKernel::Configurer & | configurer, | ||
trikHal::HardwareAbstractionInterface & | hardwareAbstraction | ||
) |
CameraDevice constructor.
mediaPath | - path where program should save photos |
configurer | - configurer to get info from config |
hardwareAbstraction | - realization of HAL |
|
overridedefault |
|
overridevirtual |
Get photo as a vector of uint8t in RGB 888 format.
Implements trikControl::CameraDeviceInterface.
|
overridevirtual |
Returns current status of the device.
Implements trikControl::CameraDeviceInterface.