trikRuntime
trikControl::CameraDevice Class Reference

Class for camera device instantiation. More...

#include <cameraDevice.h>

Inheritance diagram for trikControl::CameraDevice:
Collaboration diagram for trikControl::CameraDevice:

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...
 

Detailed Description

Class for camera device instantiation.

Constructor & Destructor Documentation

trikControl::CameraDevice::CameraDevice ( const QString &  mediaPath,
const trikKernel::Configurer configurer,
trikHal::HardwareAbstractionInterface hardwareAbstraction 
)

CameraDevice constructor.

Parameters
mediaPath- path where program should save photos
configurer- configurer to get info from config
hardwareAbstraction- realization of HAL
trikControl::CameraDevice::~CameraDevice ( )
overridedefault

Member Function Documentation

QVector< uint8_t > trikControl::CameraDevice::getPhoto ( )
overridevirtual

Get photo as a vector of uint8t in RGB 888 format.

Implements trikControl::CameraDeviceInterface.

CameraDevice::Status trikControl::CameraDevice::status ( ) const
overridevirtual

Returns current status of the device.

Implements trikControl::CameraDeviceInterface.


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