IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
uip_vis_scatter3dgif.m
Go to the documentation of this file.
1 %> @ingroup guigroup
2 %> @file
3 %> @brief Properties Window for @ref vis_scatter3dgif (3D GIF animation)
4 %> @image html Screenshot-uip_vis_scatter3dgif.png
5 %>
6 %> <b>Indexes of variables to plot</b> - see vis_scatter3dgif::idx_fea
7 %>
8 %> <b>Confidence ellipses</b> - see vis_scatter3dgif::confidences
9 %>
10 %> <b>Annotate observation names</b> - see vis_scatter3dgif::flag_text
11 %>
12 %> <b>Rotation angles</b> - see vis_scatter3dgif::rots
13 %>
14 %> @sa vis_scatter3dgif
15 
16 %> @cond
17 function varargout = uip_vis_scatter3dgif(varargin)
18 
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', @uip_vis_scatter3dgif_OpeningFcn, ...
24  'gui_OutputFcn', @uip_vis_scatter3dgif_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 uip_vis_scatter3dgif is made visible.
40 function uip_vis_scatter3dgif_OpeningFcn(hObject, eventdata, handles, varargin)
41 handles.output.flag_ok = 0;
42 guidata(hObject, handles);
43 gui_set_position(hObject);
44 
45 
46 % --- Outputs from this function are returned to the command clae.
47 function varargout = uip_vis_scatter3dgif_OutputFcn(hObject, eventdata, handles)
48 try
49  uiwait(handles.figure1);
50  handles = guidata(hObject);
51  varargout{1} = handles.output;
52  delete(gcf);
53 catch
54  output.flag_ok = 0;
55  output.params = {};
56  varargout{1} = output;
57 end;
58 
59 % --- Executes on button press in pushbuttonOK.
60 function pushbuttonOK_Callback(hObject, eventdata, handles)
61 try
62  handles.output.params = {...
63  'idx_fea', get(handles.edit_idx_fea, 'String'), ...
64  'confidences', mat2str(eval(get(handles.edit_confidences, 'String'))), ...
65  'flag_text', int2str(get(handles.checkbox_flag_text, 'Value')) ...
66  'rots', get(handles.edit_rots, 'String'), ...
67  };
68  handles.output.flag_ok = 1;
69  guidata(hObject, handles);
70  uiresume();
71 catch ME
72  irerrordlg(ME.message, 'Cannot continue');
73 
74 end;
75 
76 function edit_idx_fea_Callback(hObject, eventdata, handles)
77 
78 % --- Executes during object creation, after setting all properties.
79 function edit_idx_fea_CreateFcn(hObject, eventdata, handles)
80 % See ISPC and COMPUTER.
81 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
82  set(hObject,'BackgroundColor','white');
83 end
84 
85 function edit_confidences_Callback(hObject, eventdata, handles)
86 
87 % --- Executes during object creation, after setting all properties.
88 function edit_confidences_CreateFcn(hObject, eventdata, handles)
89 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
90  set(hObject,'BackgroundColor','white');
91 end
92 
93 % --- Executes on button press in checkbox_flag_text.
94 function checkbox_flag_text_Callback(hObject, eventdata, handles)
95 
96 function edit_rots_Callback(hObject, eventdata, handles)
97 
98 % --- Executes during object creation, after setting all properties.
99 function edit_rots_CreateFcn(hObject, eventdata, handles)
100 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
101  set(hObject,'BackgroundColor','white');
102 end
103 %> @endcond
GIF animation showing rotation of a 3D scatterplot.
Property rots
=-30:8:330 . Rotation angles in degrees
function gui_set_position(in hObject)
function irerrordlg(in errorstring, in dlgname)
Property idx_fea
=[1, 2, 3] Index of features to be uses as coordinates. Must be a 3-element vector.