-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathhistogramwindow.cpp
More file actions
37 lines (29 loc) · 881 Bytes
/
histogramwindow.cpp
File metadata and controls
37 lines (29 loc) · 881 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
35
36
37
#include "histogramwindow.h"
HistogramWindow::HistogramWindow(QAction* histogramButton, QWidget *parent) : QMainWindow(parent)
{
this->grayHistogramButton = histogramButton;
}
QAction *HistogramWindow::getGrayHistogramButton()
{
return grayHistogramButton;
}
void HistogramWindow::setGrayHistogramButton(QAction *value)
{
grayHistogramButton = value;
}
void HistogramWindow::closeEvent(QCloseEvent *event)
{
this->imageAcquisitionThread->setSupplyHistogramData(false);
this->imageAcquisitionThread->setSupplyHistogramDataForLine(false);
// Sleep(200);
this->getGrayHistogramButton()->setDisabled(false);
}
// Setters and getters
ImageAcquisition *HistogramWindow::getImageAcquisitionThread() const
{
return imageAcquisitionThread;
}
void HistogramWindow::setImageAcquisitionThread(ImageAcquisition *value)
{
imageAcquisitionThread = value;
}