Mercurial > hg > ltpda
comparison m-toolbox/classes/@constructor/cb_selectClass.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_selectClass(varargin) | |
2 | |
3 myh = varargin{1}; | |
4 mainfig = varargin{end}; | |
5 | |
6 % get selected class | |
7 h = findobj(mainfig.handle, 'Tag', 'ClassSelect'); | |
8 classes = get(h, 'String'); | |
9 cl = classes{get(h, 'Value')}; | |
10 | |
11 % get sets | |
12 ii = eval([cl '.getInfo']); | |
13 | |
14 % fill set list | |
15 h = findobj(mainfig.handle, 'Tag', 'SetSelect'); | |
16 set(h, 'Value', 1); | |
17 set(h, 'String', ii.sets); | |
18 | |
19 constructor.cb_selectSet(myh, mainfig); | |
20 | |
21 end |