UltraScan III
Namespaces
Classes
Files
File List
File Members
programs
us_astfem_sim
us_simulationparameters.h
Go to the documentation of this file.
1
#ifndef US_SIMULATIONPARAMETERS_GUI_H
3
#define US_SIMULATIONPARAMETERS_GUI_H
4
5
#include <QtGui>
6
7
#include <qwt_counter.h>
8
9
#include "
us_widgets_dialog.h
"
10
#include "
us_simparms.h
"
11
#include "
us_help.h
"
12
14
class
US_SimulationParametersGui
:
public
US_WidgetsDialog
15
{
16
Q_OBJECT
17
public
:
19
US_SimulationParametersGui
(
US_SimulationParameters
& );
20
21
signals:
22
void
complete
(
void
);
23
24
private
:
25
26
US_SimulationParameters
&
simparams
;
27
US_SimulationParameters
simparams_backup
;
28
29
US_Help
showhelp
;
30
31
int
current_speed_step
;
32
33
QComboBox*
cmb_speeds
;
34
QComboBox*
cmb_moving
;
35
QComboBox*
cmb_mesh
;
36
37
QwtCounter*
cnt_speeds
;
38
QwtCounter*
cnt_duration_hours
;
39
QwtCounter*
cnt_duration_mins
;
40
QwtCounter*
cnt_delay_hours
;
41
QwtCounter*
cnt_delay_mins
;
42
QwtCounter*
cnt_rotorspeed
;
43
QwtCounter*
cnt_acceleration
;
44
QwtCounter*
cnt_scans
;
45
QwtCounter*
cnt_selected_speed
;
46
QwtCounter*
cnt_lamella
;
47
QwtCounter*
cnt_meniscus
;
48
QwtCounter*
cnt_bottom
;
49
QwtCounter*
cnt_simpoints
;
50
QwtCounter*
cnt_radial_res
;
51
QwtCounter*
cnt_rnoise
;
52
QwtCounter*
cnt_tinoise
;
53
QwtCounter*
cnt_rinoise
;
54
QwtCounter*
cnt_temperature
;
55
56
QCheckBox*
cb_acceleration_flag
;
57
58
QRadioButton*
rb_band
;
59
QRadioButton*
rb_standard
;
60
61
void
update_combobox
(
void
);
62
void
backup_parms
(
void
);
63
void
check_delay
(
void
);
64
65
private
slots:
66
void
update_duration_hours
(
double
);
67
void
update_duration_mins
(
double
);
68
void
update_delay_hours
(
double
);
69
void
update_delay_mins
(
double
);
70
void
update_rotorspeed
(
double
);
71
void
acceleration_flag
(
void
);
72
void
update_speeds
(
double
);
73
void
update_acceleration
(
double
);
74
void
update_scans
(
double
);
75
void
update_mesh
(
int
);
76
void
select_speed_profile
(
int
);
77
void
update_speed_profile
(
double
);
78
void
load
(
void
);
79
void
save
(
void
);
80
void
accepted
(
void
);
81
void
revert
(
void
);
82
void
disconnect_all
(
void
);
83
void
reconnect_all
(
void
);
84
85
void
update_lamella
(
double
lamella )
86
{
simparams
.
band_volume
= lamella / 1000.0; };
87
88
void
update_meniscus
(
double
meniscus )
89
{
simparams
.
meniscus
= meniscus; };
90
91
void
update_bottom
(
double
bottom )
92
{
simparams
.
bottom
= bottom;
93
simparams
.
bottom_position
= bottom; };
94
95
void
update_simpoints
(
double
simpoints )
96
{
simparams
.
simpoints
= (int) simpoints; };
97
98
void
update_radial_res
(
double
radial_res )
99
{
simparams
.
radial_resolution
= radial_res; };
100
101
void
update_rnoise
(
double
rnoise )
102
{
simparams
.
rnoise
= rnoise; };
103
104
void
update_tinoise
(
double
tinoise )
105
{
simparams
.
tinoise
= tinoise; };
106
107
void
update_rinoise
(
double
rinoise )
108
{
simparams
.
rinoise
= rinoise; };
109
110
void
update_moving
(
int
grid )
111
{
simparams
.
gridType
= (
US_SimulationParameters::GridType
) grid; };
112
113
void
select_centerpiece
(
bool
)
114
{
simparams
.
band_forming
=
rb_band
->isChecked();
115
cnt_lamella
->setEnabled(
simparams
.
band_forming
); };
116
117
void
update_temp
(
double
temp )
118
{
simparams
.
temperature
= temp; };
119
120
void
help
(
void
)
121
{
showhelp
.
show_help
(
"manual/simparams.html"
); };
122
};
123
#endif
124
Generated on Sun Jun 21 2015 11:40:43 for UltraScan III by
1.8.3.1-20130324