trikRuntime
trikControl::CameraDeviceInterface Class Referenceabstract

Interface for camera device representation. More...

#include <cameraDeviceInterface.h>

Inheritance diagram for trikControl::CameraDeviceInterface:
Collaboration diagram for trikControl::CameraDeviceInterface:

Public Member Functions

virtual QVector< uint8_t > getPhoto ()=0
 Get photo as a vector of uint8t in RGB 888 format. More...
 
virtual Status status () const override=0
 Returns current status of the device. More...
 
 ~CameraDeviceInterface () override=default
 
- Public Member Functions inherited from trikControl::DeviceInterface
 DeviceInterface ()=default
 
virtual ~DeviceInterface ()=default
 

Static Public Member Functions

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

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

Detailed Description

Interface for camera device representation.

Constructor & Destructor Documentation

trikControl::CameraDeviceInterface::~CameraDeviceInterface ( )
overridedefault

Member Function Documentation

virtual QVector<uint8_t> trikControl::CameraDeviceInterface::getPhoto ( )
pure virtual

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

Implemented in trikControl::CameraDevice.

QVector< uint8_t > CameraDeviceInterface::qImageToQVector ( const QImage &  imgOrig)
static

Convert QImage to QVector of uint8_t in RGB 888 format.

Parameters
imgOrig- converting this QImage to QVector
virtual Status trikControl::CameraDeviceInterface::status ( ) const
overridepure virtual

Returns current status of the device.

Implements trikControl::DeviceInterface.

Implemented in trikControl::CameraDevice.


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