Home > vbmeg > functions > job > job_plot_currentmap_dir > job_plot_cmap_post_rotate.m

job_plot_cmap_post_rotate

PURPOSE ^

Camera light setting

SYNOPSIS ^

function job_plot_cmap_post_rotate(inst_id)

DESCRIPTION ^

 Camera light setting
 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 job_plot_cmap_post_rotate(inst_id)
0002 % Camera light setting
0003 % Copyright (C) 2011, ATR All Rights Reserved.
0004 % License : New BSD License(see VBMEG_LICENSE.txt)
0005 
0006 %
0007 % Callback function after rotating the plot
0008 %
0009 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0010 global vbmeg_inst;
0011 
0012 h_fig = vbmeg_inst.plotcmap{inst_id}.h_fig;
0013 child1 = get(h_fig,'Children');
0014 
0015 for i=1:length(child1)
0016   if strcmp(get(child1(i),'Type'),'axes'), 
0017     child2 = get(child1(i),'Children');
0018     for j=1:length(child2)
0019       if strcmp(get(child2(j),'Type'),'light'),
0020         camlight(child2(j),'headlight');
0021         return;
0022       end
0023     end
0024   end
0025 end
0026

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005