QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
CameraMetaData.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/QLoggingCategory>
4#include <QtQmlIntegration/QtQmlIntegration>
5
6Q_DECLARE_LOGGING_CATEGORY(CameraMetaDataLog)
7
8
10{
11 Q_GADGET
12 Q_PROPERTY(QString canonicalName MEMBER canonicalName CONSTANT)
13 Q_PROPERTY(QString deprecatedTranslatedName MEMBER deprecatedTranslatedName CONSTANT)
14 Q_PROPERTY(QString brand MEMBER brand CONSTANT)
15 Q_PROPERTY(QString model MEMBER model CONSTANT)
16 Q_PROPERTY(double sensorWidth MEMBER sensorWidth CONSTANT)
17 Q_PROPERTY(double sensorHeight MEMBER sensorHeight CONSTANT)
18 Q_PROPERTY(double imageWidth MEMBER imageWidth CONSTANT)
19 Q_PROPERTY(double imageHeight MEMBER imageHeight CONSTANT)
20 Q_PROPERTY(double focalLength MEMBER focalLength CONSTANT)
21 Q_PROPERTY(bool landscape MEMBER landscape CONSTANT)
22 Q_PROPERTY(bool fixedOrientation MEMBER fixedOrientation CONSTANT)
23 Q_PROPERTY(double minTriggerInterval MEMBER minTriggerInterval CONSTANT)
24
25public:
26 CameraMetaData(const QString &canonicalName_,
27 const QString &brand_,
28 const QString &model_,
29 double sensorWidth_,
30 double sensorHeight_,
31 double imageWidth_,
32 double imageHeight_,
33 double focalLength_,
34 bool landscape_,
35 bool fixedOrientation_,
36 double minTriggerInterval_,
37 const QString &deprecatedTranslatedName_);
39
40 static QList<CameraMetaData*> parseCameraMetaData();
41
42 const QString canonicalName;
43 const QString brand;
44 const QString model;
45 const double sensorWidth;
46 const double sensorHeight;
47 const double imageWidth;
48 const double imageHeight;
49 const double focalLength;
50 const bool landscape;
51 const bool fixedOrientation;
52 const double minTriggerInterval;
53
58 const QString deprecatedTranslatedName;
59};
Q_DECLARE_LOGGING_CATEGORY(AndroidSerialLog)
Set of meta data which describes a camera available on the vehicle.
Q_DECLARE_METATYPE(satellite_info_s)