0001
0002
0003
0004
0005
0006
0007
0008 function ltpdv_objectList_select(varargin)
0009
0010
0011 myh = varargin{1};
0012 mainfig = varargin{end};
0013
0014
0015 sel = varargin{2};
0016
0017
0018 rows = unique(sel.Indices(:,1));
0019 setappdata(mainfig, 'ObjectListSelectedRows', rows);
0020
0021
0022 objs = getappdata(mainfig, 'LTPDAobjects');
0023 if numel(rows) == 1
0024 w = display(objs{rows});
0025 str = [];
0026 for j=1:numel(w)
0027 str = [str sprintf('\n%s', w{j})];
0028 end
0029 set(myh, 'TooltipString', sprintf('%s', str));
0030
0031
0032
0033 obj = objs{rows};
0034
0035 ltpdv_properties_build_props(obj, mainfig)
0036
0037 end
0038
0039
0040 end
0041
0042