-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathSLTraceWidget.h
More file actions
34 lines (29 loc) · 866 Bytes
/
SLTraceWidget.h
File metadata and controls
34 lines (29 loc) · 866 Bytes
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
33
34
/*
*
MVTracker - Multi View Tracking for Pose Estimation
(c) 2014 Jakob Wilm, DTU, Kgs.Lyngby, Denmark
*
*/
#ifndef SLTraceWidget_H
#define SLTraceWidget_H
#include <QLabel>
#include <opencv2/opencv.hpp>
class SLTraceWidget : public QLabel {
Q_OBJECT
public:
explicit SLTraceWidget(QWidget *parent = 0);
~SLTraceWidget();
public slots:
void addTrace(QString name);
void addMeasurement(unsigned int id, float val);
void addMeasurement(QString name, float val);
void addMeasurements(std::vector<float> vals);
void setBounds(float _tSpan, float _yMin, float _yMax);
void draw();
private:
float tSpan, yMin, yMax;
std::vector< QString > names;
std::vector< std::vector<float> > traces;
std::vector< cv::Scalar > colors;
};
#endif // SLTraceWidget_H