-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhistogrammtab.h
More file actions
36 lines (28 loc) · 1.1 KB
/
histogrammtab.h
File metadata and controls
36 lines (28 loc) · 1.1 KB
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
35
36
#ifndef HISTOGRAMMTAB_H
#define HISTOGRAMMTAB_H
#include <memory>
#include <QObject>
#include <QWidget>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include "histogramm.h"
class HistogrammTab : public QWidget{
Q_OBJECT
private:
std::unique_ptr<QVBoxLayout> layout{new QVBoxLayout(this)};
std::unique_ptr<QHBoxLayout> histLayout{new QHBoxLayout()};
std::unique_ptr<Histogramm> blackHist{new Histogramm()};
std::unique_ptr<Histogramm> rHist{new Histogramm(qRgb(255,0,0))};
std::unique_ptr<Histogramm> gHist{new Histogramm(qRgb(0,255,0))};
std::unique_ptr<Histogramm> bHist{new Histogramm(qRgb(0,0,255))};
std::unique_ptr<QHBoxLayout> cumulHistLayout{new QHBoxLayout()};
std::unique_ptr<Histogramm> blackHistCumul{new Histogramm(true)};
std::unique_ptr<Histogramm> rHistCumul{new Histogramm(qRgb(255,0,0),true)};
std::unique_ptr<Histogramm> gHistCumul{new Histogramm(qRgb(0,255,0),true)};
std::unique_ptr<Histogramm> bHistCumul{new Histogramm(qRgb(0,0,255),true)};
public:
HistogrammTab();
public slots:
void updateHistogramms();
};
#endif // HISTOGRAMMTAB_H