IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
orhistgui.m
Go to the documentation of this file.
1 %> @ingroup guigroup
2 %> @file
3 %> @brief GUI to preview the action outlier removal.
4 %> @image html Screenshot-orhistgui.png
5 %
6 %> @param block A @c blmisc_rowsout_uni block.
7 %> @param flag_modal=0 Whether to make the window modal or not.
8 function varargout = orhistgui(varargin)
9 % Last Modified by GUIDE v2.5 11-Feb-2011 15:10:32
10 
11 % Begin initialization code - DO NOT EDIT
12 gui_Singleton = 1;
13 gui_State = struct('gui_Name', mfilename, ...
14  'gui_Singleton', gui_Singleton, ...
15  'gui_OpeningFcn', @orhistgui_OpeningFcn, ...
16  'gui_OutputFcn', @orhistgui_OutputFcn, ...
17  'gui_LayoutFcn', [] , ...
18  'gui_Callback', []);
19 if nargin && ischar(varargin{1})
20  gui_State.gui_Callback = str2func(varargin{1});
21 end
22 
23 if nargout
24  [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
25 else
26  gui_mainfcn(gui_State, varargin{:});
27 end
28 % End initialization code - DO NOT EDIT
29 
30 %> @cond
31 % --- Executes just before orhistgui is made visible.
32 function orhistgui_OpeningFcn(hObject, eventdata, handles, varargin)
33 try
34 
35  if nargin < 4
36  irverbose('INFO: Block of class blmisc_rowsout_uni not passed to orhistgui.', 1);
37  blk = [];
38  else
39  blk = varargin{1};
40  end;
41 
42  if nargin < 5
43  handles.flag_modal = 0;
44  else
45  handles.flag_modal = varargin{2};
46  end;
47 
48  if ~isempty(blk)
49  if ~isa(varargin{1}, 'blmisc_rowsout_uni')
50  irerror('Block is not a blmisc_rowsout_uni!');
51  end;
52  if ~blk.flag_trained
53  irerror('Block is not trained, needs to be trained!');
54  end;
55  end;
56 
57  handles.output = hObject;
58  guidata(hObject, handles);
60  gui_set_position(hObject);
62 catch ME
63  send_error(ME);
64 end;
65 
66 function pushbutton_redraw_Callback(hObject, eventdata, handles) %#ok<*INUSD,*DEFNU>
68 
69 function pushbuttonView_Callback(hObject, eventdata, handles)
71 
72 function pushbutton_refresh_Callback(hObject, eventdata, handles)
74 
75 function orhistgui_OutputFcn(hObject, eventdata, handles) %#ok<*INUSL>
76 if handles.flag_modal
77  set(hObject, 'WindowStyle', 'modal');
78  uiwait(handles.figure1);
79 else
80  set(hObject, 'WindowStyle', 'normal');
81 end;
82 
83 function popupmenu_data_Callback(hObject, eventdata, handles)
84 
85 function popupmenu_data_CreateFcn(hObject, eventdata, handles)
86 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
87  set(hObject,'BackgroundColor','white');
88 end
89 %> @endcond
function irverbose(in s, in level)
function orhistgui_view1()
function send_error(in ME)
function irerror(in s)
function orhistgui_set_remover(in blk)
Base Block class.
Definition: block.m:2
function orhistgui_view2(in flag_msg)
Univariate Outlier removal.
function gui_set_position(in hObject)
function orhistgui(in varargin)
function orhistgui_refresh()