Home > m > gui > ltpdv > callbacks > ltpdv_build_get_selected_class.m

ltpdv_build_get_selected_class

PURPOSE ^

LTPDV_BUILD_GET_SELECTED_CLASS returns the currently selected class on

SYNOPSIS ^

function cl = ltpdv_build_get_selected_class(mainfig)

DESCRIPTION ^

 LTPDV_BUILD_GET_SELECTED_CLASS returns the currently selected class on
 the build panel.
 
 M Hewitson 26-08-08
 
 $Id: ltpdv_build_get_selected_class.m,v 1.1 2008/09/02 07:51:47 hewitson Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % LTPDV_BUILD_GET_SELECTED_CLASS returns the currently selected class on
0002 % the build panel.
0003 %
0004 % M Hewitson 26-08-08
0005 %
0006 % $Id: ltpdv_build_get_selected_class.m,v 1.1 2008/09/02 07:51:47 hewitson Exp $
0007 %
0008 
0009 function cl = ltpdv_build_get_selected_class(mainfig)
0010   
0011   % Fill in the set selector list
0012   sh = findobj(mainfig, 'Tag', 'LTPDVbuildObjectClass');
0013  
0014   % Get the selected class
0015   strs = get(sh, 'String');
0016   idx  = get(sh, 'Value');  
0017   cl = strs{idx};
0018   
0019 end

Generated on Mon 08-Sep-2008 13:18:47 by m2html © 2003