Mercurial > hg > ltpda
comparison m-toolbox/m/gui/ltpdv/callbacks/ltpdv_build_class_select.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 % LTPDV_BUILD_CLASS_SELECT callback when the user selects the class | |
2 % of object to build | |
3 % | |
4 % M Hewitson 26-08-08 | |
5 % | |
6 % $Id: ltpdv_build_class_select.m,v 1.1 2008/09/02 07:51:47 hewitson Exp $ | |
7 % | |
8 | |
9 function ltpdv_build_class_select(varargin) | |
10 | |
11 % Handles | |
12 myh = varargin{1}; | |
13 mainfig = varargin{end}; | |
14 | |
15 % Fill in the set selector list | |
16 sh = findobj(mainfig, 'Tag', 'LTPDVbuildSetSelect'); | |
17 | |
18 % Get the selected class | |
19 cl = ltpdv_build_get_selected_class(mainfig); | |
20 | |
21 % Get info object | |
22 ii = eval([cl '.getInfo']); | |
23 | |
24 % Set sets | |
25 set(sh, 'Value', 1); | |
26 set(sh, 'String', ii.sets); | |
27 | |
28 % Callback | |
29 ltpdv_build_set_select(sh, mainfig) | |
30 | |
31 end |