ValenceHistogramWidget.hh 574 Bytes
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
/*
 * ValenceHistogramWidget.hh
 *
 *  Created on: Jan 27, 2016
 *      Author: hc
 */

#ifndef PLUGIN_INFOMESHOBJECT_VALENCEHISTOGRAMWIDGET_HH_
#define PLUGIN_INFOMESHOBJECT_VALENCEHISTOGRAMWIDGET_HH_

#include <QWidget>

class ValenceHistogramWidget: public QWidget {
    Q_OBJECT

    public:
        ValenceHistogramWidget(QWidget *parent);

        void setHistogram(std::vector<size_t> *histogram);

    protected:
        void paintEvent(QPaintEvent *event);

        std::vector<size_t> *histogram_;
};

#endif /* PLUGIN_INFOMESHOBJECT_VALENCEHISTOGRAMWIDGET_HH_ */