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

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

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;

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

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

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

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

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

40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
    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;

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

58 59
public slots:
    void modelChanged(int index);
60
    void setSetpointHistoryLength(int length);
61 62 63
    void toggleColorPointCloud(int state);
    void toggleLocalGrid(int state);
    void toggleObstacleList(int state);
64
    void toggleOverlay(const QString& name);
65 66 67
    void togglePlannedPath(int state);
    void togglePointCloud(int state);
    void toggleRGBD(int state);
68
    void toggleSetpoints(int state);
69 70 71 72 73 74 75 76 77 78 79 80 81
    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;
82
    QMap<QString,bool> mDisplayOverlay;
83 84 85
    bool mDisplayPlannedPath;
    bool mDisplayPointCloud;
    bool mDisplayRGBD;
86
    bool mDisplaySetpoints;
87 88 89 90 91
    bool mDisplayTarget;
    bool mDisplayTrails;
    bool mDisplayWaypoints;
    int mModelIndex;
    QVector<QString> mModelNames;
92
    int mSetpointHistoryLength;
93 94 95 96 97
};

typedef QSharedPointer<SystemViewParams> SystemViewParamsPtr;

#endif // SYSTEMVIEWPARAMS