diff m-toolbox/m/gui/ltpdv/callbacks/ltpdv_get_selected_objs.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/m-toolbox/m/gui/ltpdv/callbacks/ltpdv_get_selected_objs.m	Wed Nov 23 19:22:13 2011 +0100
@@ -0,0 +1,17 @@
+function objs = ltpdv_get_selected_objs(mainfig)
+
+% LTPDV_GET_SELECTED_OBJS gets the selected objects from the object list.
+% 
+% M Hewitson 22-04-08
+% 
+% $Id: ltpdv_get_selected_objs.m,v 1.1 2008/05/11 10:38:43 hewitson Exp $
+% 
+
+% Get selected rows
+rows = getappdata(mainfig, 'ObjectListSelectedRows');
+% Get current object list
+objs = getappdata(mainfig, 'LTPDAobjects');
+% Return required objects
+objs = objs(rows);
+
+% END
\ No newline at end of file