-
Notifications
You must be signed in to change notification settings - Fork 20
/
Form.cpp
43 lines (32 loc) · 857 Bytes
/
Form.cpp
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
38
39
40
41
42
43
#include "ui_Form.h"
#include "Form.h"
#include <iostream>
#include <sstream>
// Qt
#include <QFileDialog>
#include <QIcon>
#include <QTextEdit>
// Constructor
Form::Form()
{
this->setupUi(this);
this->Filter = itk::SquareImageFilter <ImageType, ImageType>::New();
ImageType::Pointer image = ImageType::New();
this->Filter->SetInput(image);
this->MyThread.SetFilter(this->Filter);
connect(&MyThread, SIGNAL(StartProgressSignal()), this, SLOT(slot_ProgressStart()));
connect(&MyThread, SIGNAL(StopProgressSignal()), this, SLOT(slot_ProgressStop()));
};
void Form::slot_ProgressStart()
{
std::cout << "slot_ProgressStart()" << std::endl;
}
void Form::slot_ProgressStop()
{
std::cout << "slot_ProgressStop()" << std::endl;
}
void Form::on_pushButton_clicked()
{
std::cout << "clicked()" << std::endl;
MyThread.start();
}