Update camera position. This is invoked by job_plot_currentmap. [syntax] job_plot_cmap_update_camera(inst_id) [history] 2011-03-14 taku-y Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function job_plot_cmap_update_camera(inst_id) 0002 % Update camera position. 0003 % 0004 % This is invoked by job_plot_currentmap. 0005 % 0006 % [syntax] 0007 % job_plot_cmap_update_camera(inst_id) 0008 % 0009 % [history] 0010 % 2011-03-14 taku-y 0011 % 0012 % Copyright (C) 2011, ATR All Rights Reserved. 0013 % License : New BSD License(see VBMEG_LICENSE.txt) 0014 0015 global vbmeg_inst; 0016 0017 % 0018 % Global variables 0019 % 0020 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0021 h_space = vbmeg_inst.plotcmap{inst_id}.h_space; 0022 0023 % 0024 % Change camera position 0025 % 0026 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0027 if ~isempty(h_space), 0028 child2 = get(h_space,'Children'); 0029 for j=1:length(child2) 0030 if strcmp(get(child2(j),'Type'),'light'), 0031 camlight(child2(j),'headlight'); 0032 return; 0033 end 0034 end 0035 end 0036 0037 return;