IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
uip_vis_scatter3d2.m
Go to the documentation of this file.
1 %>@file
2 %>@ingroup guigroup
3 %>@brief Properties Window for @ref vis_scatter3d2
4 %>
5 %> <b>Indexes of variables to plot</b> - see vis_scatter3d2::idx_fea
6 %>
7 %> <b>Confidence ellipses</b> - see vis_scatter3d2::confidences
8 %>
9 %> <b>flags_min</b> - see vis_scatter3d2::flags_min
10 %>
11 %> <b>K's</b> - see vis_scatter3d2::ks
12 %>
13 %> <b>Project points onto the walls</b> - see vis_scatter3d2::flag_wallpoints
14 %>
15 %> @sa vis_scatter3d2
16 
17 %>@cond
18 function varargout = uip_vis_scatter3d2(varargin)
19 
20 % Begin initialization code - DO NOT EDIT
21 gui_Singleton = 1;
22 gui_State = struct('gui_Name', mfilename, ...
23  'gui_Singleton', gui_Singleton, ...
24  'gui_OpeningFcn', @uip_vis_scatter3d2_OpeningFcn, ...
25  'gui_OutputFcn', @uip_vis_scatter3d2_OutputFcn, ...
26  'gui_LayoutFcn', [] , ...
27  'gui_Callback', []);
28 if nargin && ischar(varargin{1})
29  gui_State.gui_Callback = str2func(varargin{1});
30 end
31 
32 if nargout
33  [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
34 else
35  gui_mainfcn(gui_State, varargin{:});
36 end
37 % End initialization code - DO NOT EDIT
38 
39 
40 % --- Executes just before uip_vis_scatter3d2 is made visible.
41 function uip_vis_scatter3d2_OpeningFcn(hObject, eventdata, handles, varargin)
42 handles.output.flag_ok = 0;
43 guidata(hObject, handles);
44 gui_set_position(hObject);
45 
46 
47 
48 % --- Outputs from this function are returned to the command clae.
49 function varargout = uip_vis_scatter3d2_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  output.params = {};
58  varargout{1} = output;
59 end;
60 
61 
62 function editReg_Callback(hObject, eventdata, handles)
63 
64 % --- Executes during object creation, after setting all properties.
65 function editReg_CreateFcn(hObject, eventdata, handles)
66 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
67  set(hObject,'BackgroundColor','white');
68 end
69 
70 function pushbuttonOK_Callback(hObject, eventdata, handles)
71 try
72  handles.output.params = {...
73  'idx_fea', get(handles.edit_idx_fea, 'String'), ...
74  'confidences', mat2str(eval(get(handles.edit_confidences, 'String'))), ...
75  'flags_min', mat2str(eval(get(handles.edit_flags_min, 'String'))), ...
76  'ks', mat2str(eval(get(handles.edit_ks, 'String'))), ...
77  'flag_wallpoints', int2str(get(handles.checkbox_flag_wallpoints, 'Value')), ...
78  };
79  handles.output.flag_ok = 1;
80  guidata(hObject, handles);
81  uiresume();
82 catch ME
83  irerrordlg(ME.message, 'Cannot continue');
84 
85 end;
86 
87 
88 function edit_idx_fea_Callback(hObject, eventdata, handles)
89 
90 % --- Executes during object creation, after setting all properties.
91 function edit_idx_fea_CreateFcn(hObject, eventdata, handles)
92 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
93  set(hObject,'BackgroundColor','white');
94 end
95 
96 function edit_confidences_Callback(hObject, eventdata, handles)
97 
98 % --- Executes during object creation, after setting all properties.
99 function edit_confidences_CreateFcn(hObject, eventdata, handles)
100 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
101  set(hObject,'BackgroundColor','white');
102 end
103 
104 function edit_flags_min_Callback(hObject, eventdata, handles)
105 
106 % --- Executes during object creation, after setting all properties.
107 function edit_flags_min_CreateFcn(hObject, eventdata, handles)
108 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
109  set(hObject,'BackgroundColor','white');
110 end
111 
112 
113 
114 function edit_ks_Callback(hObject, eventdata, handles)
115 
116 function edit_ks_CreateFcn(hObject, eventdata, handles)
117 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
118  set(hObject,'BackgroundColor','white');
119 end
120 
121 function checkbox_flag_wallpoints_Callback(hObject, eventdata, handles)
122 
123 %>@endcond
Property flags_min
=[1, 1, 1]
Property confidences
Visualization - 3D Scatterplot - Ellipse Walls.
Definition: vis_scatter3d2.m:3
Property idx_fea
=[1, 2, 3] Index of features to be uses as coordinates. Must be a 3-element vector.
Definition: vis_scatter3d2.m:9