Mercurial > hg > ltpda
comparison m-toolbox/classes/@constructor/cb_selectSet.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 function cb_selectSet(varargin) | |
2 | |
3 myh = varargin{1}; | |
4 mainfig = varargin{end}; | |
5 | |
6 % get class | |
7 h = findobj(mainfig.handle, 'Tag', 'ClassSelect'); | |
8 classes = get(h, 'String'); | |
9 cl = classes{get(h, 'Value')}; | |
10 | |
11 % get set | |
12 h = findobj(mainfig.handle, 'Tag', 'SetSelect'); | |
13 sets = get(h, 'String'); | |
14 sset = sets{get(h, 'Value')}; | |
15 | |
16 % get plist | |
17 cmdstr = [cl '.getInfo(''' cl ''', ''' sset ''')' ]; | |
18 ii = eval(cmdstr); | |
19 pl = ii.plists; | |
20 | |
21 % make command | |
22 cmd = [cl '(' string(pl) ')']; | |
23 | |
24 ch = findobj(mainfig.handle, 'Tag', 'ConstructorDisplay'); | |
25 set(ch, 'String', cmd); | |
26 | |
27 end |