GlobalViewParams.h 1.09 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#ifndef GLOBALVIEWPARAMS_H
#define GLOBALVIEWPARAMS_H

#include <QObject>
#include <QString>
#include <QVector>

#include "QGCMAVLink.h"
#include "Imagery.h"

class GlobalViewParams : public QObject
{
    Q_OBJECT

public:
    GlobalViewParams();

18 19 20
    bool& displayTerrain(void);
    bool displayTerrain(void) const;

21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
    bool& displayWorldGrid(void);
    bool displayWorldGrid(void) const;

    Imagery::Type& imageryType(void);
    Imagery::Type imageryType(void) const;

    int& followCameraId(void);
    int followCameraId(void) const;

    MAV_FRAME& frame(void);
    MAV_FRAME frame(void) const;

public slots:
    void followCameraChanged(const QString& text);
    void frameChanged(const QString &text);
    void imageryTypeChanged(int index);
37
    void toggleTerrain(int state);
38 39 40 41 42 43
    void toggleWorldGrid(int state);

signals:
    void followCameraChanged(int systemId);

private:
44
    bool mDisplayTerrain;
45 46 47 48 49 50 51 52 53
    bool mDisplayWorldGrid;
    Imagery::Type mImageryType;
    int mFollowCameraId;
    MAV_FRAME mFrame;
};

typedef QSharedPointer<GlobalViewParams> GlobalViewParamsPtr;

#endif // GLOBALVIEWPARAMS_H