SystemViewParams.h 2.39 KB
Newer Older
1 2 3
#ifndef SYSTEMVIEWPARAMS_H
#define SYSTEMVIEWPARAMS_H

4
#include <QMap>
5 6 7
#include <QObject>
#include <QSharedPointer>
#include <QVector>
8
#include <QWidget>
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25

class SystemViewParams : public QObject
{
    Q_OBJECT

public:
    SystemViewParams(int systemId);

    bool& colorPointCloudByDistance(void);
    bool colorPointCloudByDistance(void) const;

    bool& displayLocalGrid(void);
    bool displayLocalGrid(void) const;

    bool& displayObstacleList(void);
    bool displayObstacleList(void) const;

26 27 28
    QMap<QString,bool>& displayOverlay(void);
    QMap<QString,bool> displayOverlay(void) const;

29 30 31 32 33 34 35 36 37
    bool& displayPlannedPath(void);
    bool displayPlannedPath(void) const;

    bool& displayPointCloud(void);
    bool displayPointCloud(void) const;

    bool& displayRGBD(void);
    bool displayRGBD(void) const;

38 39 40
    bool& displaySetpoints(void);
    bool displaySetpoints(void) const;

41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
    bool& displayTarget(void);
    bool displayTarget(void) const;

    bool& displayTrails(void);
    bool displayTrails(void) const;

    bool& displayWaypoints(void);
    bool displayWaypoints(void) const;

    int& modelIndex(void);
    int modelIndex(void) const;

    QVector<QString>& modelNames(void);
    const QVector<QString>& modelNames(void) const;

56 57 58
    int& setpointHistoryLength(void);
    int setpointHistoryLength(void) const;

59 60
public slots:
    void modelChanged(int index);
61
    void setSetpointHistoryLength(int length);
62 63 64
    void toggleColorPointCloud(int state);
    void toggleLocalGrid(int state);
    void toggleObstacleList(int state);
65
    void toggleOverlay(QWidget* widget);
66 67 68
    void togglePlannedPath(int state);
    void togglePointCloud(int state);
    void toggleRGBD(int state);
69
    void toggleSetpoints(int state);
70 71 72 73 74 75 76 77 78 79 80 81 82
    void toggleTarget(int state);
    void toggleTrails(int state);
    void toggleWaypoints(int state);

signals:
    void modelChangedSignal(int systemId, int index);

private:
    int mSystemId;

    bool mColorPointCloudByDistance;
    bool mDisplayLocalGrid;
    bool mDisplayObstacleList;
83
    QMap<QString,bool> mDisplayOverlay;
84 85 86
    bool mDisplayPlannedPath;
    bool mDisplayPointCloud;
    bool mDisplayRGBD;
87
    bool mDisplaySetpoints;
88 89 90 91 92
    bool mDisplayTarget;
    bool mDisplayTrails;
    bool mDisplayWaypoints;
    int mModelIndex;
    QVector<QString> mModelNames;
93
    int mSetpointHistoryLength;
94 95 96 97 98
};

typedef QSharedPointer<SystemViewParams> SystemViewParamsPtr;

#endif // SYSTEMVIEWPARAMS