-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdialog.h
47 lines (40 loc) · 882 Bytes
/
dialog.h
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
44
45
46
47
#ifndef DIALOG_H
#define DIALOG_H
#include "ui_dialog.h"
#include "snake.h"
#include "scene.h"
#include <QtGui>
class ShapeDlg : public QDialog
{
Q_OBJECT
public:
ShapeDlg(QWidget *parent = 0);
~ShapeDlg();
void setTheFileName(QString fileName){theFileName=fileName;}
void Build(QString fileName);
PointList getShape(){return shape;}
public slots:
virtual void slotChangeText();
virtual void slotBuild();
virtual void slotCancel();
virtual void slotUse();
int exec();
private:
Ui::Dialog dialog;
Scene* scene;
QString theFileName;
PointList shape;
double continuityCoeff;
double curvatureCoeff;
double imageCoeff;
double flowCoeff;
double balloonCoeff;
double priorCoeff;
bool autoAdaptation;
int maxIterations;
int autoAdaptLoop;
int minLength;
int maxLength;
QPen pen;
};
#endif // DIALOG_H