trikRuntime
trikControl::QtCameraImplementation Class Reference

Camera implementation with QtMultimedia. More...

#include <qtCameraImplementation.h>

Inheritance diagram for trikControl::QtCameraImplementation:
Collaboration diagram for trikControl::QtCameraImplementation:

Public Member Functions

 QtCameraImplementation (const QString &port)
 Qt camera constructor. More...
 
QVector< uint8_t > getPhoto () override
 Get photo as a vector of uint8t in RGB 888 format. More...
 
 ~QtCameraImplementation () override=default
 
- Public Member Functions inherited from trikControl::CameraImplementationInterface
virtual ~CameraImplementationInterface ()=default
 
 CameraImplementationInterface ()=default
 
QString getTempDir () const
 Get directory, where photos are saved. More...
 
void setTempDir (const QString &newDir)
 Set directory, where photos are saved. More...
 

Detailed Description

Camera implementation with QtMultimedia.

Constructor & Destructor Documentation

QtCameraImplementation::QtCameraImplementation ( const QString &  port)
explicit

Qt camera constructor.

Parameters
port- use this as name of device, i.e. "/dev/video0"
trikControl::QtCameraImplementation::~QtCameraImplementation ( )
overridedefault

Member Function Documentation

QVector< uint8_t > QtCameraImplementation::getPhoto ( )
overridevirtual

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

Implements trikControl::CameraImplementationInterface.


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