QGCRGBDView.h 822 Bytes
Newer Older
1 2 3 4
#ifndef QGCRGBDVIEW_H
#define QGCRGBDVIEW_H

#include "HUD.h"
5
#include "Vehicle.h"
6 7 8 9 10 11

class QGCRGBDView : public HUD
{
    Q_OBJECT
public:
    explicit QGCRGBDView(int width=640, int height=480, QWidget *parent = 0);
12
    ~QGCRGBDView();
13 14 15 16

signals:

public slots:
17
    void clearData(void);
18 19 20 21 22 23 24 25 26 27 28
    void enableRGB(bool enabled);
    void enableDepth(bool enabled);
    void updateData(UASInterface *uas);

protected:
    bool rgbEnabled;
    bool depthEnabled;
    QAction* enableRGBAction;
    QAction* enableDepthAction;

    void contextMenuEvent (QContextMenuEvent* event);
29 30 31 32
    /** @brief Store current configuration of widget */
    void storeSettings();
    /** @brief Load configuration of widget */
    void loadSettings();
33 34 35
    
private slots:
    void _activeVehicleChanged(Vehicle* vehicle);
36 37 38
};

#endif // QGCRGBDVIEW_H