Home > functions > job > job_view_cortex_dir > job_view_cortex_figure.m

job_view_cortex_figure

PURPOSE ^

job_view_cortex_figure

SYNOPSIS ^

function job_view_cortex_figure( key )

DESCRIPTION ^

 job_view_cortex_figure

  figureの生成およびresize


 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:

SUBFUNCTIONS ^

SOURCE CODE ^

0001 function job_view_cortex_figure( key )
0002 % job_view_cortex_figure
0003 %
0004 %  figureの生成およびresize
0005 %
0006 %
0007 % Copyright (C) 2011, ATR All Rights Reserved.
0008 % License : New BSD License(see VBMEG_LICENSE.txt)
0009 
0010 switch key
0011   % figure の生成
0012  case 'create'
0013   H = job_view_cortex_create_figure;
0014   job_view_cortex_resize_figure( H );
0015   H.file_dialog = file_dialog;
0016   set( H.fig, 'ResizeFcn', 'job_view_cortex_figure( ''resize'' )' );
0017   set( H.fig, 'UserData', H );
0018   % figure のサイズ/Position設定
0019  case 'resize'
0020   H = get( gcf, 'UserData' );
0021   job_view_cortex_resize_figure( H );;
0022 end
0023 
0024   
0025 
0026 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0027 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0028 function H = job_view_cortex_create_figure()
0029 
0030 graycolor = [ 0.8,0.8,0.8 ];
0031 whitecolor = [ 1,1,1 ];
0032 
0033 
0034 %---------------------------------------------------------------------
0035 % Figure の生成
0036 
0037 H.fig = figure( 'Tag', 'job_view_cortex main',...
0038         'Menubar', 'none',...
0039         'Color', graycolor,...
0040         'Units', 'pixels',...
0041         'WindowButtonMotionFcn',...
0042             'job_view_cortex_callback(''mouse move'');',...
0043         'CloseRequestFcn', 'job_view_cortex_callback(''close'');',...
0044         'DefaultUicontrolHitTest', 'off',...
0045         'DefaultUicontrolBackgroundColor', graycolor,...
0046         'DefaultUicontrolFontUnits', 'pixels',...
0047         'DefaultUicontrolFontSize', 12, ...
0048         'DefaultUicontrolHorizontalAlignment', 'left' );
0049 
0050 %---------------------------------------------------------------------
0051 % Brain部
0052 
0053 H.brain_frame = uicontrol(...
0054     'Style', 'frame' );
0055 
0056 H.brain_frame_label = uicontrol(...
0057     'Style', 'text',...
0058     'String', 'Brain Model' );
0059 
0060 H.brain_file_label = uicontrol(...
0061     'Style', 'text',...
0062     'String', 'Brain File' );
0063 
0064 H.brain_file_name = uicontrol(...
0065     'Style', 'edit',...
0066     'String', '',...
0067     'Enable', 'inactive',...
0068     'BackgroundColor', whitecolor );
0069 
0070 H.brain_file_load_button = uicontrol(...
0071     'Style', 'pushbutton',...
0072     'Callback', 'job_view_cortex_callback(''brain load file button'');',...
0073     'Selected', 'on',...
0074     'String', 'load',...
0075     'HitTest', 'on',...
0076     'HorizontalAlignment', 'center' );
0077 
0078 
0079 
0080 %---------------------------------------------------------------------
0081 % Activation 表示選択部
0082 
0083 H.activation_frame = uicontrol(...
0084     'Style', 'frame' );
0085 
0086 H.activation_frame_label = uicontrol(...
0087     'Style', 'text',...
0088     'String', 'Activation' );
0089 
0090 H.activation_file_label = uicontrol(...
0091     'Style', 'text',...
0092     'String', 'File' );
0093 
0094 H.activation_file_name = uicontrol(...
0095     'Style', 'edit',...
0096     'String', '',...
0097     'Enable', 'inactive',...
0098     'BackgroundColor', whitecolor );
0099 
0100 H.activation_file_load_button = uicontrol(...
0101     'Style', 'pushbutton',...
0102     'Callback', 'job_view_cortex_callback(''act load file button'');',...
0103     'Enable', 'off', ...
0104     'String', 'load',...
0105     'HitTest', 'on',...
0106     'HorizontalAlignment', 'center' );
0107 
0108 H.activation_list = uicontrol(...
0109     'Style', 'listbox',...
0110     'Callback', 'job_view_cortex_callback(''act list select'');',...
0111     'String', {},...
0112     'Value', [],...
0113     'Max', 2, 'Min', 0,...
0114     'HitTest', 'on',...
0115     'BackgroundColor', whitecolor );
0116 
0117 H.activation_list_label = uicontrol(...
0118     'Style', 'text',...
0119     'String', 'Activation List' );
0120 
0121 H.activation_plotted_add_button = uicontrol(...
0122     'Style', 'pushbutton',...
0123     'CallBack',....
0124         'job_view_cortex_callback(''act add to plotted list button'');',...
0125     'String', 'add',...
0126     'Enable', 'off',...
0127     'HitTest', 'on',...
0128     'HorizontalAlignment', 'center' );
0129 
0130 H.activation_plotted_delete_button = uicontrol(...
0131     'Style', 'pushbutton',...
0132     'CallBack',...
0133       'job_view_cortex_callback(''act delete from plotted list button'');',...
0134     'String', 'del.',...
0135     'Enable', 'off',...
0136     'HitTest', 'on',...
0137     'HorizontalAlignment', 'center' );
0138 
0139 H.activation_plotted_clear_button = uicontrol(...
0140     'Style', 'pushbutton',...
0141     'CallBack',...
0142         'job_view_cortex_callback(''act clear plotted list button'');',...
0143     'String', 'clear',...
0144     'Enable', 'off',...
0145     'HitTest', 'on',...
0146     'HorizontalAlignment', 'center' );
0147 
0148 H.activation_plotted_list = uicontrol(...
0149     'Style', 'listbox',...
0150     'Callback',....
0151         'job_view_cortex_callback(''act plotted list select'');',...
0152     'String', {},...
0153     'Value', [],...
0154     'Max', 2, 'Min', 0,...
0155     'HitTest', 'on',...
0156     'BackgroundColor', whitecolor );
0157 
0158 H.activation_plotted_list_label = uicontrol(...
0159     'Style', 'text',...
0160     'String', 'Plotted Activation' );
0161 
0162 
0163 
0164 %---------------------------------------------------------------------
0165 % 領域表示/マスク部
0166 
0167 H.area_frame = uicontrol(...
0168     'Style', 'frame' );
0169     
0170 H.area_frame_label = uicontrol(...
0171     'Style', 'text',...
0172     'String', 'Area Plot / Mask' );
0173 
0174 H.area_file_label = uicontrol(...
0175     'Style', 'text',...
0176     'String', 'File' );
0177 
0178 H.area_file_name = uicontrol(...
0179     'Style', 'edit',...
0180     'String', '',...
0181     'Enable', 'inactive',...
0182     'BackgroundColor', whitecolor );
0183 
0184 H.area_file_load_button = uicontrol(...
0185     'Style', 'pushbutton',...
0186     'Callback', 'job_view_cortex_callback(''area load file button'');',...
0187     'Enable', 'off',...
0188     'String', 'load',...
0189     'HitTest', 'on',...
0190     'HorizontalAlignment', 'center' );
0191 
0192 H.area_file_save_button = uicontrol(...
0193     'Style', 'pushbutton',...
0194     'Callback', 'job_view_cortex_callback(''area save file button'');',...
0195     'Enable', 'off',...
0196     'String', 'save',...
0197     'HitTest', 'on',...
0198     'HorizontalAlignment', 'center' );
0199 
0200 H.area_list = uicontrol(...
0201     'Style', 'listbox',...
0202     'Callback', 'job_view_cortex_callback(''area list select'');',...
0203     'String', {},...
0204     'Value', [],...
0205     'Max', 2, 'Min', 0,...
0206     'HitTest', 'on',...
0207     'BackgroundColor', whitecolor );
0208 
0209 H.area_list_label = uicontrol(...
0210     'Style', 'text',...
0211     'String', 'Area List' );
0212 
0213 H.area_plotted_add_button = uicontrol(...
0214     'Style', 'pushbutton',...
0215     'CallBack',...
0216         'job_view_cortex_callback(''area add to plotted list button'');',...
0217     'String', 'add',...
0218     'Enable', 'off',...
0219     'HitTest', 'on',...
0220     'HorizontalAlignment', 'center' );
0221 
0222 H.area_plotted_delete_button = uicontrol(...
0223     'Style', 'pushbutton',...
0224     'CallBack',...
0225       'job_view_cortex_callback(''area delete from plotted list button'');',...
0226     'String', 'del.',...
0227     'Enable', 'off',...
0228     'HitTest', 'on',...
0229     'HorizontalAlignment', 'center' );
0230 
0231 H.area_plotted_clear_button = uicontrol(...
0232     'Style', 'pushbutton',...    
0233     'CallBack',...
0234         'job_view_cortex_callback(''area clear plotted list button'');',...
0235     'String', 'clear',...
0236     'Enable', 'off',...
0237     'HitTest', 'on',...
0238     'HorizontalAlignment', 'center' );
0239 
0240 H.area_plotted_list = uicontrol(...
0241     'Style', 'listbox',...
0242     'Callback', 'job_view_cortex_callback(''area plotted list select'');',...
0243     'String', {},...
0244     'Value', [],...
0245     'Max', 2, 'Min', 0,...
0246     'HitTest', 'on',...
0247     'BackgroundColor', whitecolor );
0248 
0249 H.area_plotted_list_label = uicontrol(...
0250     'Style', 'text',...
0251     'String', 'Plotted Area' );
0252 
0253 H.area_masking_add_button = uicontrol(...
0254     'Style', 'pushbutton',...
0255     'CallBack',...
0256         'job_view_cortex_callback(''area add to masking list button'');',...
0257     'String', 'add',...
0258     'Enable', 'off',...
0259     'HitTest', 'on',...
0260     'HorizontalAlignment', 'center' );
0261 
0262 H.area_masking_delete_button = uicontrol(...
0263     'Style', 'pushbutton',...
0264     'CallBack',...
0265       'job_view_cortex_callback(''area delete from masking list button'');',...
0266     'String', 'del.',...
0267     'Enable', 'off',...
0268     'HitTest', 'on',...
0269     'HorizontalAlignment', 'center' );
0270 
0271 H.area_masking_clear_button = uicontrol(...
0272     'Style', 'pushbutton',...
0273     'CallBack',...
0274         'job_view_cortex_callback(''area clear masking list button'');',...
0275     'String', 'clear',...
0276     'Enable', 'off',...
0277     'HitTest', 'on',...
0278     'HorizontalAlignment', 'center' );
0279 
0280 H.area_masking_list = uicontrol(...
0281     'Style', 'listbox',...
0282     'Callback', 'job_view_cortex_callback(''area masking list select'');',...
0283     'String', {},...
0284     'Value', [],...
0285     'Max', 2, 'Min', 0,...
0286     'HitTest', 'on',...
0287     'BackgroundColor', whitecolor );
0288 
0289 H.area_masking_list_label = uicontrol(...
0290     'Style', 'text',...
0291     'String', 'Masking Area' );
0292 
0293 H.area_list_delete_button = uicontrol(...
0294     'Style', 'pushbutton',...
0295     'Callback', 'job_view_cortex_callback(''area list delete button'')',...
0296     'String', 'del.',...
0297     'Enable', 'off',...
0298     'HitTest', 'on',...
0299     'HorizontalAlignment', 'center' );
0300 
0301 
0302 
0303 %---------------------------------------------------------------------
0304 % マウス機能の選択部 ( ズームイン/アウト, 回転, 頂点選択 )
0305 
0306 H.mouse_func_frame = uicontrol(...
0307     'Style', 'frame' );
0308 
0309 H.mouse_func_frame_label = uicontrol(...
0310     'Style', 'text',...
0311     'String', 'Mouse Function' );
0312 
0313 H.mouse_func_radioZ = uicontrol(...
0314     'Style', 'radiobutton',...
0315     'Callback', 'job_view_cortex_callback(''mouse func Z'');',...
0316     'String', 'Zoom In/Out',...
0317     'Max', 1,...
0318     'Min', 0,...
0319     'HitTest', 'on',...
0320     'Value', 0 );
0321 
0322 H.mouse_func_radioR = uicontrol(...
0323     'Style', 'radiobutton',...
0324     'Callback', 'job_view_cortex_callback(''mouse func R'');',...
0325     'String', 'Rotation',...
0326     'Max', 1,...
0327     'Min', 0,...
0328     'HitTest', 'on',...
0329     'Value', 1 );
0330 
0331 H.mouse_func_radioS = uicontrol(...
0332     'Style', 'radiobutton',...
0333     'Callback', 'job_view_cortex_callback(''mouse func S'');',...
0334     'String', 'Add Selection',...
0335     'Max', 1,...
0336     'Min', 0,...
0337     'HitTest', 'on',...
0338     'Value', 0 );
0339 
0340 H.mouse_func_radioU = uicontrol(...
0341     'Style', 'radiobutton',...
0342     'Callback', 'job_view_cortex_callback(''mouse func U'');',...
0343     'String', 'Delete Selection',...
0344     'Max', 1,...
0345     'Min', 0,...
0346     'HitTest', 'on',...
0347     'Value', 0 );
0348 
0349 
0350 
0351 %---------------------------------------------------------------------
0352 % 領域選択部
0353 
0354 H.selection_frame = uicontrol(...
0355     'Style', 'frame' );
0356 
0357 H.selection_frame_label = uicontrol(...
0358     'Style', 'text',...
0359     'String', 'Selection' );
0360 
0361 H.selection_num_vertex = uicontrol(...
0362     'Style', 'edit',...
0363     'String', '0',...
0364     'BackgroundColor', whitecolor,...
0365     'Enable', 'inactive',...
0366     'HorizontalAlignment', 'right' );
0367 
0368 H.selection_num_vertex_label = uicontrol(...
0369     'Style', 'text',...
0370     'String', 'verticies selected' );
0371 
0372 H.selection_undo_button = uicontrol(...
0373     'Style', 'pushbutton',...
0374     'Callback', 'job_view_cortex_callback(''selection undo button'');',...
0375     'String', 'undo',...
0376     'Enable', 'off',...
0377     'HitTest', 'on',...
0378     'HorizontalAlignment', 'center' );
0379 
0380 H.selection_clear_button = uicontrol(...
0381     'Style', 'pushbutton',...
0382     'Callback', 'job_view_cortex_callback(''selection clear button'');',...
0383     'String', 'clear',...
0384     'Enable', 'off',...
0385     'HitTest', 'on',...
0386     'HorizontalAlignment', 'center' );
0387 
0388 H.selection_dilation_button = uicontrol(...
0389     'Style', 'pushbutton',...
0390     'Callback', 'job_view_cortex_callback(''selection dilation button'');',...
0391     'String', 'dilation',...
0392     'Enable', 'off',...
0393     'HitTest', 'on',...
0394     'HorizontalAlignment', 'center' );
0395 
0396 H.selection_erosion_button = uicontrol(...
0397     'Style', 'pushbutton',...
0398     'Callback', 'job_view_cortex_callback(''selection erosion button'');',...
0399     'String', 'erosion',...
0400     'Enable', 'off',...
0401     'HitTest', 'on',...
0402     'HorizontalAlignment', 'center' );
0403 
0404 H.selection_register_button = uicontrol(...
0405     'Style', 'pushbutton',...
0406     'Callback', 'job_view_cortex_callback(''selection register button'');',...
0407     'String', 'register',...
0408     'Enable', 'off',...
0409     'HitTest', 'on',...
0410     'HorizontalAlignment', 'center' );
0411 
0412 H.selection_act_label = uicontrol(...
0413     'Style', 'text',...
0414     'String', 'Activation' );
0415 
0416 H.selection_add_intersect_act_button = uicontrol(...
0417     'Style', 'pushbutton',...
0418     'Callback',...
0419         'job_view_cortex_callback(''selection add intersect act button'');',...
0420     'String', 'add int.',...
0421     'Enable', 'off',...
0422     'HitTest', 'on',...
0423     'HorizontalAlignment', 'center' );
0424 
0425 H.selection_delete_intersect_act_button = uicontrol(...
0426     'Style', 'pushbutton',...
0427     'Callback',...
0428      'job_view_cortex_callback(''selection delete intersect act button'');',...
0429     'String', 'del. int.',...
0430     'Enable', 'off',...
0431     'HitTest', 'on',...
0432     'HorizontalAlignment', 'center' );
0433 
0434 H.selection_add_union_act_button = uicontrol(...
0435     'Style', 'pushbutton',...
0436     'Callback',...
0437         'job_view_cortex_callback(''selection add union act button'');',...
0438     'String', 'add union',...
0439     'Enable', 'off',...
0440     'HitTest', 'on',...
0441     'HorizontalAlignment', 'center' );
0442 
0443 H.selection_delete_union_act_button = uicontrol(...
0444     'Style', 'pushbutton',...
0445     'Callback',...
0446         'job_view_cortex_callback(''selection delete union act button'');',...
0447     'String', 'del. union',...
0448     'Enable', 'off',...
0449     'HitTest', 'on',...
0450     'HorizontalAlignment', 'center' );
0451 
0452 H.selection_area_label = uicontrol(...
0453     'Style', 'text',...
0454     'String', 'Area' );
0455 
0456 H.selection_add_intersect_area_button = uicontrol(...
0457     'Style', 'pushbutton',...
0458     'Callback',...
0459       'job_view_cortex_callback(''selection add intersect area button'');',...
0460     'String', 'add int.',...
0461     'Enable', 'off',...
0462     'HitTest', 'on',...
0463     'HorizontalAlignment', 'center' );
0464 
0465 H.selection_delete_intersect_area_button = uicontrol(...
0466     'Style', 'pushbutton',...
0467     'Callback',...
0468     'job_view_cortex_callback(''selection delete intersect area button'');',...
0469     'String', 'del. int.',...
0470     'Enable', 'off',...
0471     'HitTest', 'on',...
0472     'HorizontalAlignment', 'center' );
0473 
0474 H.selection_add_union_area_button = uicontrol(...
0475     'Style', 'pushbutton',...
0476     'Callback',...
0477         'job_view_cortex_callback(''selection add union area button'');',...
0478     'String', 'add union',...
0479     'Enable', 'off',...
0480     'HitTest', 'on',...
0481     'HorizontalAlignment', 'center' );
0482 
0483 H.selection_delete_union_area_button = uicontrol(...
0484     'Style', 'pushbutton',...
0485     'Callback',...
0486         'job_view_cortex_callback(''selection delete union area button'');',...
0487     'String', 'del. union',...
0488     'Enable', 'off',...
0489     'HitTest', 'on',...
0490     'HorizontalAlignment', 'center' );
0491 
0492 
0493 
0494 %---------------------------------------------------------------------
0495 % Plot 部
0496 
0497 H.set_param_button = uicontrol(...
0498     'Style', 'pushbutton',...
0499     'String', 'set parameters',...
0500     'Callback', 'job_view_cortex_callback(''set param'');',...
0501     'HitTest', 'on',...
0502     'HorizontalAlignment', 'center' );
0503 
0504 H.print_button = uicontrol(...
0505     'Style', 'pushbutton',...
0506     'String', 'print',...
0507     'Callback', 'job_view_cortex_callback(''print'');',...
0508     'HitTest', 'on',...
0509     'HorizontalAlignment', 'center' );
0510 
0511 H.close_button = uicontrol(...
0512     'Style', 'pushbutton',...
0513     'String', 'close',...
0514     'Callback', 'job_view_cortex_callback(''close'');',...
0515     'HitTest', 'on',...
0516     'HorizontalAlignment', 'center' );
0517 
0518 H.plot_axes = axes(...
0519     'Visible', 'on',...
0520     'Color', whitecolor,...
0521     'XTick', [], 'YTick', [], 'ZTick', [],...
0522     'Box', 'on',...
0523     'DataAspectRatio', [1,1,1],...
0524     'PlotBoxAspectRatioMode', 'manual',...
0525     'SelectionHighlight', 'off',...
0526     'HitTest', 'on',...
0527     'Units', 'pixels' );
0528 
0529 hold on;
0530 
0531 %---------------------------------------------------------------------
0532 % data 格納用
0533 
0534 H.data = uicontrol( 'Style', 'frame', 'Visible', 'off', 'Enable', 'off' );
0535 H.braindata = uicontrol( 'Style', 'frame', 'Visible', 'off', 'Enable', 'off' );
0536 H.actdata = uicontrol( 'Style', 'frame', 'Visible', 'off', 'Enable', 'off' );
0537 H.areadata = uicontrol( 'Style', 'frame', 'Visible', 'off', 'Enable', 'off' );
0538 H.selectdata = uicontrol( 'Style', 'frame', 'Visible', 'off', 'Enable', 'off' );
0539 H.paramdata = uicontrol( 'Style', 'frame', 'Visible', 'off', 'Enable', 'off' );
0540 
0541 
0542 
0543 
0544 
0545 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0546 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0547 function job_view_cortex_resize_figure( H )
0548 
0549 
0550 % figure サイズ設定
0551 
0552 minwidth = 600;
0553 minheight = 450;
0554 
0555 screensize = get( 0, 'ScreenSize' );
0556 figpos = get( H.fig, 'Position' );
0557 
0558 if figpos(3) < minwidth
0559   figpos(3) = minwidth;
0560 end
0561 
0562 if figpos(4) < minheight
0563   figpos(2) = figpos(2)-(minheight-figpos(4));
0564   figpos(4) = minheight;
0565 end
0566 
0567 set( H.fig, 'Position', figpos );
0568 
0569 
0570 % 各フレームのpositionを設定
0571 
0572 fig_w = figpos(3);
0573 fig_h = figpos(4);
0574 
0575 list_w = fig_w/6;
0576 list_h = (fig_h-220)/3;
0577 
0578 leftpart_l = 10;
0579 leftpart_w = list_w * 2 + 55;
0580 rightpart_l = leftpart_l + leftpart_w + 10;
0581 rightpart_w = 315;
0582 
0583 brain_l = leftpart_l;
0584 brain_t = fig_h - 15;
0585 brain_w = leftpart_w;
0586 brain_h = 35;
0587 brain_b = brain_t - brain_h;
0588 
0589 act_l = leftpart_l;
0590 act_t = brain_b - 15;
0591 act_w = leftpart_w;
0592 act_h = list_h + 55;
0593 act_b = act_t - act_h;
0594 
0595 area_l = leftpart_l;
0596 area_t = act_b - 15;
0597 area_w = leftpart_w;
0598 area_h = list_h * 2 + 75;
0599 area_b = area_t - area_h;
0600 
0601 select_l = rightpart_l;
0602 select_b = 10;
0603 select_w = rightpart_w;
0604 select_h = 75;
0605 select_t = select_b + select_h;
0606 
0607 mouse_l = rightpart_l;
0608 mouse_b = select_t + 15;
0609 mouse_w = rightpart_w;
0610 mouse_h = 55;
0611 mouse_t = mouse_b + mouse_h;
0612 
0613 axis_l = rightpart_l;
0614 axis_t = fig_h - 35;
0615 axis_w = fig_w - axis_l - 10;
0616 axis_h = fig_h - mouse_b - mouse_h - 45;
0617 axis_b = axis_t - axis_h;
0618 
0619 
0620 % brain part の position設定
0621 
0622 set( H.brain_frame,...
0623      'Position', [brain_l,brain_b,brain_w,brain_h] );
0624 set( H.brain_frame_label,...
0625      'Position', [brain_l+10,brain_t-10,75,16] );
0626 set( H.brain_file_label,...
0627      'Position', [brain_l+5,brain_t-30,70,16] );
0628 set( H.brain_file_name,...
0629      'Position', [brain_l+75,brain_t-30,brain_w-120,20] );
0630 set( H.brain_file_load_button,...
0631      'Position', [brain_l+brain_w-45,brain_t-30,35,20] );
0632 
0633 
0634 % activation part の position設定
0635 
0636 set( H.activation_frame,...
0637      'Position', [act_l,act_b,act_w,act_h] );
0638 set( H.activation_frame_label,...
0639      'Position', [act_l+10,act_t-10,65,16] );
0640 set( H.activation_file_label,...
0641      'Position', [act_l+5,act_t-30,30,16] );
0642 set( H.activation_file_name,...
0643      'Position', [act_l+35,act_t-30,act_w-120,20] );
0644 set( H.activation_file_load_button,...
0645      'Position', [act_l+act_w-85,act_t-30,35,20] );
0646 set( H.activation_list,...
0647      'Position', [act_l+5,act_b+5,list_w,act_h-55] );
0648 set( H.activation_list_label,...
0649      'Position', [act_l+5,act_t-50,list_w,16] );
0650 set( H.activation_plotted_list,...
0651      'Position', [act_l+list_w+50,act_b+5,list_w,list_h] );
0652 set( H.activation_plotted_list_label,...
0653      'Position', [act_l+list_w+50,act_t-50,list_w,16] );
0654 set( H.activation_plotted_add_button,...
0655      'Position', [act_l+list_w+8,act_t-70,40,20] );
0656 set( H.activation_plotted_delete_button,...
0657      'Position', [act_l+list_w+8,act_t-90,40,20] );
0658 set( H.activation_plotted_clear_button,...
0659      'Position', [act_l+list_w+8,act_t-110,40,20] );
0660 
0661 
0662 % area part の position設定
0663 
0664 set( H.area_frame,...
0665      'Position', [area_l,area_b,area_w,area_h] );
0666 set( H.area_frame_label,...
0667      'Position', [area_l+10,area_t-10,100,16] );
0668 set( H.area_file_label,...
0669      'Position', [area_l+5,area_t-30,30,16] );
0670 set( H.area_file_name,...
0671      'Position', [area_l+35,area_t-30,area_w-120,20] );
0672 set( H.area_file_load_button,...
0673      'Position', [area_l+area_w-85,area_t-30,35,20] );
0674 set( H.area_file_save_button,...
0675      'Position', [area_l+area_w-50,area_t-30,35,20] );
0676 set( H.area_list,...
0677      'Position', [area_l+5,area_b+25,list_w,area_h-75] );
0678 set( H.area_list_label,...
0679      'Position', [area_l+5,area_t-50,list_w,16] );
0680 set( H.area_list_delete_button,...
0681      'Position', [area_l+5,area_b+5,40,20] );
0682 set( H.area_plotted_list,...
0683      'Position', [area_l+list_w+50,area_t-50-list_h,list_w,list_h] );
0684 set( H.area_plotted_list_label,...
0685      'Position', [area_l+list_w+50,area_t-50,list_w,16] );
0686 set( H.area_plotted_add_button,...
0687      'Position', [area_l+list_w+8,area_t-70,40,20] );
0688 set( H.area_plotted_delete_button,...
0689      'Position', [area_l+list_w+8,area_t-90,40,20] );
0690 set( H.area_plotted_clear_button,...
0691      'Position', [area_l+list_w+8,area_t-110,40,20] );
0692 set( H.area_masking_list,...
0693      'Position', [area_l+list_w+50,area_b+5,list_w,list_h] );
0694 set( H.area_masking_list_label,...
0695      'Position', [area_l+list_w+50,area_b+list_h+5,list_w,16] );
0696 set( H.area_masking_add_button,...
0697      'Position', [area_l+list_w+8,area_b+list_h-15,40,20] );
0698 set( H.area_masking_delete_button,...
0699      'Position', [area_l+list_w+8,area_b+list_h-35,40,20] );
0700 set( H.area_masking_clear_button,...
0701      'Position', [area_l+list_w+8,area_b+list_h-55,40,20] );
0702 
0703 
0704 % mouse func part の position設定
0705 
0706 set( H.mouse_func_frame,...
0707      'Position', [mouse_l,mouse_b,mouse_w,mouse_h] );
0708 set( H.mouse_func_frame_label,...
0709      'Position', [mouse_l+10,mouse_t-10,100,16] );
0710 set( H.mouse_func_radioZ,...
0711      'Position', [mouse_l+5,mouse_t-30,100,20] );
0712 set( H.mouse_func_radioR,...
0713      'Position', [mouse_l+5,mouse_t-50,100,20] );
0714 set( H.mouse_func_radioS,...
0715      'Position', [mouse_l+110,mouse_t-30,120,20] );
0716 set( H.mouse_func_radioU,...
0717      'Position', [mouse_l+110,mouse_t-50,120,20] );
0718 
0719 
0720 % selection part の position設定
0721 
0722 set( H.selection_frame,...
0723      'Position', [select_l,select_b,select_w,select_h] );
0724 set( H.selection_frame_label,...
0725      'Position', [select_l+10,select_t-10,60,16] );
0726 set( H.selection_num_vertex,...
0727      'Position', [select_l+100,select_t-10,35,20] );
0728 set( H.selection_num_vertex_label,...
0729      'Position', [select_l+135,select_t-10,105,16] );
0730 set( H.selection_undo_button,...
0731      'Position', [select_l+5,select_t-30,40,20] );
0732 set( H.selection_clear_button,...
0733      'Position', [select_l+45,select_t-30,40,20] );
0734 set( H.selection_dilation_button,...
0735      'Position', [select_l+85,select_t-30,50,20] );
0736 set( H.selection_erosion_button,...
0737      'Position', [select_l+135,select_t-30,50,20] );
0738 set( H.selection_register_button,...
0739      'Position', [select_l+190,select_t-30,55,20] );
0740 set( H.selection_act_label,...
0741      'Position', [select_l+5,select_t-50,65,16 ] );
0742 set( H.selection_add_intersect_act_button,...
0743      'Position', [select_l+70,select_t-50,50,20] );
0744 set( H.selection_delete_intersect_act_button,...
0745      'Position', [select_l+120,select_t-50,50,20] );
0746 set( H.selection_add_union_act_button,...
0747      'Position', [select_l+170,select_t-50,70,20] );
0748 set( H.selection_delete_union_act_button,...
0749      'Position', [select_l+240,select_t-50,70,20] );
0750 set( H.selection_area_label,...
0751      'Position', [select_l+5,select_t-70,65,16 ] );
0752 set( H.selection_add_intersect_area_button,...
0753      'Position', [select_l+70,select_t-70,50,20] );
0754 set( H.selection_delete_intersect_area_button,...
0755      'Position', [select_l+120,select_t-70,50,20] );
0756 set( H.selection_add_union_area_button,...
0757      'Position', [select_l+170,select_t-70,70,20] );
0758 set( H.selection_delete_union_area_button,...
0759      'Position', [select_l+240,select_t-70,70,20] );
0760 
0761 
0762 % その他の position設定
0763 
0764 set( H.set_param_button,...
0765      'Position', [rightpart_l,axis_t+5,95,20] );
0766 set( H.print_button,...
0767      'Position', [rightpart_l+95,axis_t+5,40,20] );
0768 set( H.close_button,...
0769      'Position', [fig_w-50,axis_t+5,40,20] );
0770 set( H.plot_axes,...
0771      'Position', [axis_l,axis_b,axis_w,axis_h] );

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