IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
uip_pre_bc_poly.m
Go to the documentation of this file.
1 %>@file
2 %>@ingroup guigroup
3 %>@brief Properties Window for @ref pre_bc_poly
4 %>
5 %>@image html Screenshot-uip_pre_bc_poly.png
6 %>
7 %> <b>Polynomial order</b> - see pre_bc_poly::order
8 %>
9 %> <b>epsilon</b> - see pre_bc_poly::epsilon
10 %>
11 %> <b>Dataset with background (contaminant) spectra</b> - see pre_bc_poly::contaminant_data
12 %>
13 %> <b>Index(es) of background spectrum(spectra) in dataset</b> - see pre_bc_poly::contaminant_idxs
14 %>
15 %> @sa pre_bc_poly
16 
17 %>@cond
18 function varargout = blockuip_fsel_fixed(varargin)
19 % Begin initialization code - DO NOT EDIT
20 gui_Singleton = 1;
21 gui_State = struct('gui_Name', mfilename, ...
22  'gui_Singleton', gui_Singleton, ...
23  'gui_OpeningFcn', @blockuip_fsel_fixed_OpeningFcn, ...
24  'gui_OutputFcn', @blockuip_fsel_fixed_OutputFcn, ...
25  'gui_LayoutFcn', [] , ...
26  'gui_Callback', []);
27 if nargin && ischar(varargin{1})
28  gui_State.gui_Callback = str2func(varargin{1});
29 end
30 
31 if nargout
32  [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
33 else
34  gui_mainfcn(gui_State, varargin{:});
35 end
36 % End initialization code - DO NOT EDIT
37 
38 
39 % --- Executes just before blockuip_fsel_fixed is made visible.
40 function blockuip_fsel_fixed_OpeningFcn(hObject, eventdata, handles, varargin)
41 handles.output.flag_ok = 0;
42 guidata(hObject, handles);
43 gui_set_position(hObject);
44 
45 ds_refresh(handles);
46 
47 
48 % --- Outputs from this function are returned to the command clae.
49 function varargout = blockuip_fsel_fixed_OutputFcn(hObject, eventdata, handles)
50 try
51  uiwait(handles.figure1);
52  handles = guidata(hObject);
53  varargout{1} = handles.output;
54  delete(gcf);
55 catch
56  output.flag_ok = 0;
57  varargout{1} = output;
58 end;
59 
60 
61 %###################################################
62 %###################################################
63 
64 %#########
65 function ds_refresh(handles)
66 vars = evalin('base', 'who(''ds*'')');
67 if ~isempty(vars)
68  vars = ['(None)' vars'];
69 else
70  vars = {'(None)'};
71 end;
72 set(handles.popupmenuData, 'String', vars);
73 
74 
75 %###################################################
76 %###################################################
77 
78 
79 function editReg_Callback(hObject, eventdata, handles)
80 % hObject handle to editReg (see GCBO)
81 % eventdata reserved - to be defined in a future version of MATLAB
82 % handles structure with handles and user data (see GUIDATA)
83 
84 % Hints: get(hObject,'String') returns contents of editReg as text
85 % str2double(get(hObject,'String')) returns contents of editReg as a double
86 
87 
88 % --- Executes during object creation, after setting all properties.
89 function editReg_CreateFcn(hObject, eventdata, handles)
90 % hObject handle to editReg (see GCBO)
91 % eventdata reserved - to be defined in a future version of MATLAB
92 % handles empty - handles not created until after all CreateFcns called
93 
94 % Hint: edit controls usually have a white background on Windows.
95 % See ISPC and COMPUTER.
96 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
97  set(hObject,'BackgroundColor','white');
98 end
99 
100 
101 
102 % --- Executes on button press in pushbuttonOk.
103 function pushbuttonOk_Callback(hObject, eventdata, handles)
104 % hObject handle to pushbuttonOk (see GCBO)
105 % eventdata reserved - to be defined in a future version of MATLAB
106 % handles structure with handles and user data (see GUIDATA)
107 a = get(handles.popupmenuData, 'String');
108 
109 ds_name = a{get(handles.popupmenuData, 'Value')};
110 if strcmp(ds_name, '(None)')
111  ds_name = '[]';
112 end;
113 
114 
115 handles.output.params = {...
116 'order', num2str(eval(get(handles.edit_order, 'String'))), ...
117 'epsilon', num2str(eval(get(handles.edit_epsilon, 'String'))), ...
118 'contaminant_data', ds_name, ...
119 'contaminant_idxs', mat2str(eval(get(handles.editIdxs, 'String'))) ...
120 };
121 handles.output.flag_ok = 1;
122 guidata(hObject, handles);
123 uiresume();
124 
125 
126 
127 function editKnots_Callback(hObject, eventdata, handles)
128 % hObject handle to editKnots (see GCBO)
129 % eventdata reserved - to be defined in a future version of MATLAB
130 % handles structure with handles and user data (see GUIDATA)
131 
132 % Hints: get(hObject,'String') returns contents of editKnots as text
133 % str2double(get(hObject,'String')) returns contents of editKnots as a double
134 
135 
136 % --- Executes during object creation, after setting all properties.
137 function editKnots_CreateFcn(hObject, eventdata, handles)
138 % hObject handle to editKnots (see GCBO)
139 % eventdata reserved - to be defined in a future version of MATLAB
140 % handles empty - handles not created until after all CreateFcns called
141 
142 % Hint: edit controls usually have a white background on Windows.
143 % See ISPC and COMPUTER.
144 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
145  set(hObject,'BackgroundColor','white');
146 end
147 
148 
149 
150 function editHelp_Callback(hObject, eventdata, handles)
151 % hObject handle to editHelp (see GCBO)
152 % eventdata reserved - to be defined in a future version of MATLAB
153 % handles structure with handles and user data (see GUIDATA)
154 
155 % Hints: get(hObject,'String') returns contents of editHelp as text
156 % str2double(get(hObject,'String')) returns contents of editHelp as a double
157 
158 
159 % --- Executes during object creation, after setting all properties.
160 function editHelp_CreateFcn(hObject, eventdata, handles)
161 % hObject handle to editHelp (see GCBO)
162 % eventdata reserved - to be defined in a future version of MATLAB
163 % handles empty - handles not created until after all CreateFcns called
164 
165 % Hint: edit controls usually have a white background on Windows.
166 % See ISPC and COMPUTER.
167 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
168  set(hObject,'BackgroundColor','white');
169 end
170 
171 
172 
173 function edit_order_Callback(hObject, eventdata, handles)
174 % hObject handle to edit_order (see GCBO)
175 % eventdata reserved - to be defined in a future version of MATLAB
176 % handles structure with handles and user data (see GUIDATA)
177 
178 % Hints: get(hObject,'String') returns contents of edit_order as text
179 % str2double(get(hObject,'String')) returns contents of edit_order as a double
180 
181 
182 % --- Executes during object creation, after setting all properties.
183 function edit_order_CreateFcn(hObject, eventdata, handles)
184 % hObject handle to edit_order (see GCBO)
185 % eventdata reserved - to be defined in a future version of MATLAB
186 % handles empty - handles not created until after all CreateFcns called
187 
188 % Hint: edit controls usually have a white background on Windows.
189 % See ISPC and COMPUTER.
190 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
191  set(hObject,'BackgroundColor','white');
192 end
193 
194 
195 
196 function edit_epsilon_Callback(hObject, eventdata, handles)
197 % hObject handle to edit_epsilon (see GCBO)
198 % eventdata reserved - to be defined in a future version of MATLAB
199 % handles structure with handles and user data (see GUIDATA)
200 
201 % Hints: get(hObject,'String') returns contents of edit_epsilon as text
202 % str2double(get(hObject,'String')) returns contents of edit_epsilon as a double
203 
204 
205 % --- Executes during object creation, after setting all properties.
206 function edit_epsilon_CreateFcn(hObject, eventdata, handles)
207 % hObject handle to edit_epsilon (see GCBO)
208 % eventdata reserved - to be defined in a future version of MATLAB
209 % handles empty - handles not created until after all CreateFcns called
210 
211 % Hint: edit controls usually have a white background on Windows.
212 % See ISPC and COMPUTER.
213 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
214  set(hObject,'BackgroundColor','white');
215 end
216 
217 
218 
219 function edit_no_iterations_Callback(hObject, eventdata, handles)
220 % hObject handle to edit_no_iterations (see GCBO)
221 % eventdata reserved - to be defined in a future version of MATLAB
222 % handles structure with handles and user data (see GUIDATA)
223 
224 % Hints: get(hObject,'String') returns contents of edit_no_iterations as text
225 % str2double(get(hObject,'String')) returns contents of edit_no_iterations as a double
226 
227 
228 % --- Executes during object creation, after setting all properties.
229 function edit_no_iterations_CreateFcn(hObject, eventdata, handles)
230 % hObject handle to edit_no_iterations (see GCBO)
231 % eventdata reserved - to be defined in a future version of MATLAB
232 % handles empty - handles not created until after all CreateFcns called
233 
234 % Hint: edit controls usually have a white background on Windows.
235 % See ISPC and COMPUTER.
236 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
237  set(hObject,'BackgroundColor','white');
238 end
239 
240 
241 % --- Executes on selection change in popupmenuData.
242 function popupmenuData_Callback(hObject, eventdata, handles)
243 % hObject handle to popupmenuData (see GCBO)
244 % eventdata reserved - to be defined in a future version of MATLAB
245 % handles structure with handles and user data (see GUIDATA)
246 
247 % Hints: contents = get(hObject,'String') returns popupmenuData contents as cell array
248 % contents{get(hObject,'Value')} returns selected item from popupmenuData
249 
250 
251 % --- Executes during object creation, after setting all properties.
252 function popupmenuData_CreateFcn(hObject, eventdata, handles)
253 % hObject handle to popupmenuData (see GCBO)
254 % eventdata reserved - to be defined in a future version of MATLAB
255 % handles empty - handles not created until after all CreateFcns called
256 
257 % Hint: popupmenu controls usually have a white background on Windows.
258 % See ISPC and COMPUTER.
259 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
260  set(hObject,'BackgroundColor','white');
261 end
262 
263 
264 
265 function editIdxs_Callback(hObject, eventdata, handles)
266 % hObject handle to editIdxs (see GCBO)
267 % eventdata reserved - to be defined in a future version of MATLAB
268 % handles structure with handles and user data (see GUIDATA)
269 
270 % Hints: get(hObject,'String') returns contents of editIdxs as text
271 % str2double(get(hObject,'String')) returns contents of editIdxs as a double
272 
273 
274 % --- Executes during object creation, after setting all properties.
275 function editIdxs_CreateFcn(hObject, eventdata, handles)
276 % hObject handle to editIdxs (see GCBO)
277 % eventdata reserved - to be defined in a future version of MATLAB
278 % handles empty - handles not created until after all CreateFcns called
279 
280 % Hint: edit controls usually have a white background on Windows.
281 % See ISPC and COMPUTER.
282 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
283  set(hObject,'BackgroundColor','white');
284 end
285 %>@endcond
Property order
=5. See bc_poly.m
Definition: pre_bc_poly.m:12
function gui_set_position(in hObject)
Polynomial Baseline Correction.
Definition: pre_bc_poly.m:6
Analysis Session (AS) base class.
Definition: as.m:6
Property epsilon
=[] (auto). See bc_poly.m
Definition: pre_bc_poly.m:15