mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
merged attention branch to trunk
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@657 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -36,15 +36,18 @@ class StatItem : public QWidget
|
||||
Q_OBJECT;
|
||||
|
||||
public:
|
||||
StatItem(const QString & name, float x, float y, const QString & unit = QString(), const QMenu * menu = 0, QGridLayout * grid = 0, QWidget * parent = 0);
|
||||
StatItem(const QString & name, const std::vector<float> & x, const std::vector<float> & y, const QString & unit = QString(), const QMenu * menu = 0, QGridLayout * grid = 0, QWidget * parent = 0);
|
||||
virtual ~StatItem();
|
||||
void setValue(float x, float y);
|
||||
void setValues(const std::vector<float> & x, const std::vector<float> & y);
|
||||
QString value() const;
|
||||
|
||||
public slots:
|
||||
void updateMenu(const QMenu * menu);
|
||||
|
||||
signals:
|
||||
void valueChanged(float, float);
|
||||
void valuesChanged(const std::vector<float> &, const std::vector<float> &);
|
||||
void plotRequested(const StatItem *, const QString &);
|
||||
|
||||
private slots:
|
||||
@@ -59,7 +62,6 @@ private:
|
||||
QLabel * _value;
|
||||
QLabel * _unit;
|
||||
QMenu * _menu;
|
||||
float _xValue;
|
||||
};
|
||||
|
||||
|
||||
@@ -80,6 +82,7 @@ public:
|
||||
|
||||
public slots:
|
||||
void updateStat(const QString & statFullName, float x, float y);
|
||||
void updateStat(const QString & statFullName, const std::vector<float> & x, const std::vector<float> & y);
|
||||
|
||||
signals:
|
||||
void menuChanged(const QMenu *);
|
||||
|
||||
Reference in New Issue
Block a user