Home > functions > gui > bm_editor > bm_edit_app_view > bm_edit_app_view3d > bm_edit_app_view3d_make_figure.m

bm_edit_app_view3d_make_figure

PURPOSE ^

make figure.

SYNOPSIS ^

function [obj] = bm_edit_app_view3d_make_figure(obj, view_setting3d)

DESCRIPTION ^

 make figure.
 [USAGE]
    [h] = bm_edit_app_view3d_make_figure(<obj>, <view_setting3d>);
 [IN]
               obj : bm_edit_app_view3d object
    view_setting3d : 3d view setting object
 [OUT]
    h : figure handle

 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_view3d_make_figure(obj, view_setting3d)
0002 % make figure.
0003 % [USAGE]
0004 %    [h] = bm_edit_app_view3d_make_figure(<obj>, <view_setting3d>);
0005 % [IN]
0006 %               obj : bm_edit_app_view3d object
0007 %    view_setting3d : 3d view setting object
0008 % [OUT]
0009 %    h : figure handle
0010 %
0011 % Copyright (C) 2011, ATR All Rights Reserved.
0012 % License : New BSD License(see VBMEG_LICENSE.txt)
0013 
0014 %
0015 % --- Previous check
0016 %
0017 if ~exist('obj', 'var'), error('obj is a required parameter.'); end
0018 if ~exist('view_setting3d', 'var')
0019     error('view_setting3d is a required parameter.');
0020 end
0021 
0022 %
0023 % --- Main Procedure
0024 %
0025 obj.h = openfig('bm_edit_app_view3d.fig');
0026 
0027 H = guihandles(obj.h);
0028 
0029 % axis off
0030 set(obj.h, 'CurrentAxes', H.model_axes);
0031 axis off;
0032 set(obj.h, 'CurrentAxes', H.selected_axes);
0033 axis off;
0034 
0035 % tranceparent setting
0036 contents = [1:-0.1:0];
0037 for k=1:length(contents)
0038     contents_str{k} = num2str(contents(k));
0039 end
0040 set(H.tranceparent_popup, 'String', contents_str);
0041 
0042 %
0043 % --- After check
0044 %
0045 if nargout ~= 1
0046     error('function caller should receive obj.');
0047 end

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