-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgeneral_settings.m
57 lines (54 loc) · 1.79 KB
/
general_settings.m
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
48
49
50
51
52
53
54
55
56
57
% w : 0 or somthing else
% 0 means initial condition
function general_settings(w,handles)
global gsettings
cpath = getcurrentdir();
if (w == 0)
try
load([cpath '\settings.dat'],'-mat','gsettings');
catch
gsettings.URL = 'http://web2.clarkson.edu/projects/airlab/software/resuspension_gui/index.html';
gsettings.ver_URL = 'http://web2.clarkson.edu/projects/airlab/software/resuspension_gui/app_ver.txt';
gsettings.initial_msg = {...
'Particle Resuspension GUI';...
'Visualization & Analysis';...
'Developed by Clarkson University-AIR Lab';...
'Defense Threat Reduction Agency (DTRA)';...
'Grant#: HDTRA1-14-C-0009';...
};
gsettings.marker_type = {};
gsettings.default_marker_type = 'Circle';
gsettings.novalue_marker_type = 'Cross';
gsettings.marker_color = {};
gsettings.default_marker_color = 'Blue';
gsettings.novalue_marker_color = 'Gray';
gsettings.marker_sizerange = 6:.5:20;
gsettings.novalue_marker_size = 4;
gsettings.lwidth = 2;
gsettings.novalue_lwidth = 1;
gsettings.markerfill = 0;
gsettings.qtyrl = 1;
gsettings.qlyrl = 0;
save([cpath '\settings.dat'],'gsettings')
end %try
else
save([cpath '\settings.dat'],'gsettings')
end %if
switch gsettings.markerfill
case 1
set(handles.filled,'Checked','on');
case 0
set(handles.filled,'Checked','off');
end %switch
switch gsettings.qtyrl
case 1
set(handles.qtylegrev,'Checked','on')
case 0
set(handles.qtylegrev,'Checked','off')
end %switch
switch gsettings.qlyrl
case 1
set(handles.qlylegrev,'Checked','on')
case 0
set(handles.qlylegrev,'Checked','off')
end %switch