Home > functions > gui > brain_file_maker > brain_file_maker_view3d.m

brain_file_maker_view3d

PURPOSE ^

launch job_view_cortex

SYNOPSIS ^

function [obj] = brain_file_maker_view3d(obj, brain_file, area_file, act_file)

DESCRIPTION ^

 launch job_view_cortex
 [USAGE]
    brain_file_maker_view3d(<obj>, <brain_file>, <area_file>, <act_file>);
 [IN]
           obj : brain_file_maker object
    brain_file : brain file(.brain.mat) (fullpath)
     area_file : area file(.area.mat)   (fullpath)
      act_file : act file(.act.mat)     (fullpath)
 [OUT]
    obj : brain_file_maker object

 Author: rhayashi
 Created: 2007-07-13

 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] = brain_file_maker_view3d(obj, brain_file, area_file, act_file)
0002 % launch job_view_cortex
0003 % [USAGE]
0004 %    brain_file_maker_view3d(<obj>, <brain_file>, <area_file>, <act_file>);
0005 % [IN]
0006 %           obj : brain_file_maker object
0007 %    brain_file : brain file(.brain.mat) (fullpath)
0008 %     area_file : area file(.area.mat)   (fullpath)
0009 %      act_file : act file(.act.mat)     (fullpath)
0010 % [OUT]
0011 %    obj : brain_file_maker object
0012 %
0013 % Author: rhayashi
0014 % Created: 2007-07-13
0015 %
0016 % Copyright (C) 2011, ATR All Rights Reserved.
0017 % License : New BSD License(see VBMEG_LICENSE.txt)
0018 
0019 %
0020 % --- Previous check
0021 %
0022 if ~exist('obj', 'var'), error('obj is a required parameter.'); end
0023 if ~exist('brain_file', 'var') || exist(brain_file, 'file') ~= 2
0024     error('brain_file is a required parameter.');
0025 end
0026 if ~exist('area_file', 'var')
0027     error('area_file is a required parameter.');
0028 end
0029 if ~exist('act_file', 'var')
0030     error('act_file is a required parameter.');
0031 end
0032 
0033 %
0034 % --- Main Procedure
0035 %
0036 command = ['job_view_cortex_init(''', brain_file, ''''];
0037 if exist(area_file, 'file')
0038     command = [command ', ''--area'', ''' area_file, ''''];
0039 end
0040 if exist(act_file, 'file')
0041     command = [command ', ''--act'', ''', act_file, ''''];
0042 end
0043 command = [command, ');'];
0044 
0045 eval(command);
0046 obj.view3d = gcf;
0047 
0048 %
0049 % --- After check
0050 %
0051 if nargout ~= 1
0052     error('function caller should receive obj.');
0053 end

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