Home > functions > gui > bayes_parm_editor_dir > bayes_parm_editor_get_basic_gui_common.m

bayes_parm_editor_get_basic_gui_common

PURPOSE ^

get common value of basic gui to refer in advanced parameter gui.

SYNOPSIS ^

function [common] = bayes_parm_editor_get_basic_gui_common(obj)

DESCRIPTION ^

 get common value of basic gui to refer in advanced parameter gui.
 [IN]
    obj : bayes_parm_editor object
 [OUT]
    common.proj_root   : project root directory
          .basis_files : basis filename {Nx1}
          .area_key    : area_key       {Nx1}

 Copyright (C) 2011, ATR All Rights Reserved.
 License : New BSD License(see VBMEG_LICENSE.txt)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [common] = bayes_parm_editor_get_basic_gui_common(obj)
0002 % get common value of basic gui to refer in advanced parameter gui.
0003 % [IN]
0004 %    obj : bayes_parm_editor object
0005 % [OUT]
0006 %    common.proj_root   : project root directory
0007 %          .basis_files : basis filename {Nx1}
0008 %          .area_key    : area_key       {Nx1}
0009 %
0010 % Copyright (C) 2011, ATR All Rights Reserved.
0011 % License : New BSD License(see VBMEG_LICENSE.txt)
0012 
0013 %
0014 % --- Previous check
0015 %
0016 if ~exist('obj', 'var') || isempty(obj) || ~ishandle(obj)
0017     error('invalid obj is specified.');
0018 end
0019 
0020 %
0021 % --- Main Procedure
0022 %
0023 
0024 data = guidata(obj);
0025 basic_gui_data = guidata(data.basic_fig);
0026 basic_gui_handles = basic_gui_data.H;
0027 
0028 common = struct;
0029 
0030 % get common value from basic gui.
0031 common.proj_root   = get(basic_gui_handles.project_root_edit, 'String');
0032 common.basis_files = get(basic_gui_handles.basis_file_listbox, 'String');
0033 common.area_keys   = get(basic_gui_handles.area_key_listbox, 'String');

Generated on Tue 27-Aug-2013 11:46:04 by m2html © 2005