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 <QtQmlIntegration/QtQmlIntegration>
4
8{
9 Q_GADGET
10 Q_PROPERTY(QString canonicalName MEMBER canonicalName CONSTANT)
11 Q_PROPERTY(QString deprecatedTranslatedName MEMBER deprecatedTranslatedName CONSTANT)
12 Q_PROPERTY(QString brand MEMBER brand CONSTANT)
13 Q_PROPERTY(QString model MEMBER model CONSTANT)
14 Q_PROPERTY(double sensorWidth MEMBER sensorWidth CONSTANT)
15 Q_PROPERTY(double sensorHeight MEMBER sensorHeight CONSTANT)
16 Q_PROPERTY(double imageWidth MEMBER imageWidth CONSTANT)
17 Q_PROPERTY(double imageHeight MEMBER imageHeight CONSTANT)
18 Q_PROPERTY(double focalLength MEMBER focalLength CONSTANT)
19 Q_PROPERTY(bool landscape MEMBER landscape CONSTANT)
20 Q_PROPERTY(bool fixedOrientation MEMBER fixedOrientation CONSTANT)
21 Q_PROPERTY(double minTriggerInterval MEMBER minTriggerInterval CONSTANT)
22
23public:
24 CameraMetaData(const QString &canonicalName_,
25 const QString &brand_,
26 const QString &model_,
27 double sensorWidth_,
28 double sensorHeight_,
29 double imageWidth_,
30 double imageHeight_,
31 double focalLength_,
32 bool landscape_,
33 bool fixedOrientation_,
34 double minTriggerInterval_,
35 const QString &deprecatedTranslatedName_);
37
38 static QList<CameraMetaData*> parseCameraMetaData();
39
40 const QString canonicalName;
41 const QString brand;
42 const QString model;
43 const double sensorWidth;
44 const double sensorHeight;
45 const double imageWidth;
46 const double imageHeight;
47 const double focalLength;
48 const bool landscape;
49 const bool fixedOrientation;
50 const double minTriggerInterval;
51
57};
58Q_DECLARE_METATYPE(CameraMetaData*)
Set of meta data which describes a camera available on the vehicle.
const double focalLength
Focal length in millimeters.
const QString brand
Camera brand. Used for grouping.
CameraMetaData(const QString &canonicalName_, const QString &brand_, const QString &model_, double sensorWidth_, double sensorHeight_, double imageWidth_, double imageHeight_, double focalLength_, bool landscape_, bool fixedOrientation_, double minTriggerInterval_, const QString &deprecatedTranslatedName_)
const double imageWidth
Image size in pixels.
const QString deprecatedTranslatedName
static QList< CameraMetaData * > parseCameraMetaData()
const double imageHeight
Image size in pixels.
const bool fixedOrientation
true: camera is in fixed orientation
const QString model
Camerar model.
const double minTriggerInterval
Minimum time in seconds between each photo taken, 0 for not specified.
const QString canonicalName
Canonical name saved in plan files. Not translated.
const bool landscape
true: camera is in landscape orientation
const double sensorWidth
Sensor size in millimeters.
const double sensorHeight
Sensor size in millimeters.