Home > functions > gui > bm_editor > bm_edit_app > bm_edit_app_close_all_view.m

bm_edit_app_close_all_view

PURPOSE ^

close view

SYNOPSIS ^

function obj = bm_edit_app_close_all_view(obj)

DESCRIPTION ^

 close view
 [USAGE]
    obj = bm_edit_app_close_all_view(<obj>);
 [IN]
    obj : bm_edit_app object
 [OUT]
    obj : bm_edit_app 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 obj = bm_edit_app_close_all_view(obj)
0002 % close view
0003 % [USAGE]
0004 %    obj = bm_edit_app_close_all_view(<obj>);
0005 % [IN]
0006 %    obj : bm_edit_app object
0007 % [OUT]
0008 %    obj : bm_edit_app object
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'), error('obj is a required parameter.'); end
0017 
0018 %
0019 % --- Main Procedure
0020 %
0021 if ~isempty(obj.view2d) && bm_edit_app_view_is_opening(obj.view2d)
0022     bm_edit_app_view_close(obj.view2d);
0023     obj.view2d = [];
0024 end
0025 
0026 if ~isempty(obj.view3d) && bm_edit_app_view_is_opening(obj.view3d)
0027     bm_edit_app_view_close(obj.view3d);
0028     obj.view3d = [];
0029 end
0030 
0031 %
0032 % --- After check
0033 %
0034 if nargout ~= 1
0035     error('function caller should receive obj.');
0036 end

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