Blame view
DiffHistoGraph.h
569 Bytes
3f2992b2c
|
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 |
#ifndef DIFFHISTOGRAPH_H #define DIFFHISTOGRAPH_H #include <QWidget> #include <QList> #include <QColor> #include <opencv2/core/core.hpp> class DiffHistoGraph: public QWidget { Q_OBJECT public: DiffHistoGraph(QColor color, bool minusY = false, int scale = 4, int width = 380, int height = 100, QWidget *parent = 0); public slots: void appendDist(qreal dist); void setScale(int scale); protected: void paintEvent(QPaintEvent *event); private: int m_height; qreal m_scale; bool m_minusY; QList<qreal> m_distList; QColor m_color; }; #endif |