Skip to content
QGCRGBDView.h 822 B
Newer Older
#ifndef QGCRGBDVIEW_H
#define QGCRGBDVIEW_H

#include "HUD.h"
#include "Vehicle.h"

class QGCRGBDView : public HUD
{
    Q_OBJECT
public:
    explicit QGCRGBDView(int width=640, int height=480, QWidget *parent = 0);

signals:

public slots:
    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);
    /** @brief Store current configuration of widget */
    void storeSettings();
    /** @brief Load configuration of widget */
    void loadSettings();
    
private slots:
    void _activeVehicleChanged(Vehicle* vehicle);
};

#endif // QGCRGBDVIEW_H