SystemViewParams.h 2.18 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
#ifndef SYSTEMVIEWPARAMS_H
#define SYSTEMVIEWPARAMS_H

#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;

    bool& displayPlannedPath(void);
    bool displayPlannedPath(void) const;

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

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

33 34 35
    bool& displaySetpoints(void);
    bool displaySetpoints(void) const;

36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
    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;

51 52 53
    int& setpointHistoryLength(void);
    int setpointHistoryLength(void) const;

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

typedef QSharedPointer<SystemViewParams> SystemViewParamsPtr;

#endif // SYSTEMVIEWPARAMS