Home > marsbar > mars_blob_menu.m

mars_blob_menu

PURPOSE ^

puts up ROI menu to add to SPM results interface

SYNOPSIS ^

function hC = mars_blob_menu

DESCRIPTION ^

 puts up ROI menu to add to SPM results interface
 FORMAT hC = mars_blob_menu
 
 Returns 
 hC              - handle of menu
 
 $Id$

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function hC = mars_blob_menu
0002 % puts up ROI menu to add to SPM results interface
0003 % FORMAT hC = mars_blob_menu
0004 %
0005 % Returns
0006 % hC              - handle of menu
0007 %
0008 % $Id$
0009   
0010 % Tag
0011 tg = 'blob_menu';
0012 
0013 %-Get Interactive window and delete any previous DesRepUI menu
0014 %-----------------------------------------------------------------------
0015 Finter = spm_figure('GetWin','Interactive');
0016 delete(findobj(get(Finter,'Children'),'flat','Tag',tg))
0017 
0018 hC      = uimenu(Finter,'Label','Write ROI(s)',...
0019         'Separator','on',...
0020         'Tag',tg,...
0021         'UserData','',...
0022         'HandleVisibility','on');
0023 
0024 %-Write one blob
0025 %-----------------------------------------------------------------------
0026 hWo = uimenu(hC,'Label','Write one cluster','Accelerator','O',...
0027         'CallBack','mars_blob_ui(''save_one'')',...
0028         'UserData',hC,...
0029         'HandleVisibility','off');
0030 
0031 %-Write all blobs
0032 %-----------------------------------------------------------------------
0033 hWo = uimenu(hC,'Label','Write all clusters','Accelerator','A',...
0034         'CallBack','mars_blob_ui(''save_many'')',...
0035         'UserData',hC,...
0036         'HandleVisibility','off');
0037 
0038 %-Rerun results ui
0039 %-----------------------------------------------------------------------
0040 hWo = uimenu(hC,'Label','Rerun results UI','Accelerator','R',...
0041         'CallBack','mars_blob_ui(''reinit'')',...
0042         'UserData',hC,...
0043         'HandleVisibility','off');
0044 %-Clear
0045 %-----------------------------------------------------------------------
0046 uimenu(hC,'Label','Clear','Accelerator','L','Separator','on',...
0047     'CallBack','spm_results_ui(''Clear'')',...
0048     'HandleVisibility','off');
0049 
0050 %-Pop open 'Interactive' window
0051 %-----------------------------------------------------------------------
0052 figure(Finter)
0053 
0054 %-Return handle of menu
0055 %-----------------------------------------------------------------------
0056 varargout = {hC};

Generated on Wed 11-May-2022 16:26:09 by m2html © 2003-2019