Home > functions > gui > bm_editor > bm_edit_app_view > bm_edit_app_view_update.m

bm_edit_app_view_update

PURPOSE ^

bm_edit_app_view screen update

SYNOPSIS ^

function [view_obj] = bm_edit_app_view_update(view_obj, brain_app,func_h, view_setting_obj)

DESCRIPTION ^

 bm_edit_app_view screen update
 [USAGE]
    [view_obj] = bm_edit_app_view_update(...
                            <view_obj>, <brain_app>, <view_setting_obj>);
 [IN]
            view_obj : bm_edit_app_view object
              func_h : function handle to get display factor.
    view_setting_obj : view setting object
 [OUT]
    view_obj : updated view object

 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 [view_obj] = bm_edit_app_view_update(...
0002                                     view_obj, brain_app, ...
0003                                     func_h, view_setting_obj)
0004 % bm_edit_app_view screen update
0005 % [USAGE]
0006 %    [view_obj] = bm_edit_app_view_update(...
0007 %                            <view_obj>, <brain_app>, <view_setting_obj>);
0008 % [IN]
0009 %            view_obj : bm_edit_app_view object
0010 %              func_h : function handle to get display factor.
0011 %    view_setting_obj : view setting object
0012 % [OUT]
0013 %    view_obj : updated view object
0014 %
0015 % Copyright (C) 2011, ATR All Rights Reserved.
0016 % License : New BSD License(see VBMEG_LICENSE.txt)
0017 
0018 %
0019 % --- Previous check
0020 %
0021 if ~exist('view_obj', 'var'), error('view_obj is a required parameter.'); end
0022 if ~exist('brain_app', 'var')
0023     error('brain_app is a required parameter.');
0024 end
0025 if ~exist('func_h', 'var')
0026     error('func_h is a required parameter.');
0027 end
0028 if ~exist('view_setting_obj', 'var')
0029     error('view_setting_obj is a required parameter.');
0030 end
0031 
0032 %
0033 % --- Main Procedure
0034 %
0035 
0036 % call subclass update function
0037 
0038 switch(view_obj.class_type)
0039     case 'bm_edit_app_view2d'
0040         [view_obj] = ...
0041         bm_edit_app_view2d_update(view_obj, brain_app, func_h, view_setting_obj);
0042     case 'bm_edit_app_view3d'
0043         [view_obj] = ...
0044             bm_edit_app_view3d_update(view_obj, brain_app, func_h, view_setting_obj);
0045 end
0046 
0047 %
0048 % --- After check
0049 %
0050 if nargout ~= 1
0051     error('function caller should receive obj.');
0052 end

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