Changeset 627 for trunk/src/mouse_up.m
- Timestamp:
- May 3, 2013, 10:11:43 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_up.m
r625 r627 172 172 set(hhuvmat.edit_object,'Value',1);% 173 173 set(hhuvmat.edit_object,'Enable','on');% 174 set(hhuvmat.MenuEditObject,'Enable','on');%175 set(hhuvmat.MenuEdit,'Enable','on');%174 % set(hhuvmat.MenuEditObject,'Enable','on');% 175 % set(hhuvmat.MenuEdit,'Enable','on');% 176 176 set(get(h_set_object,'children'),'Enable','on') 177 177 end … … 376 376 end 377 377 378 %% display the data of the current object selected with the mouse right click379 if isequal(get(hcurrentfig,'SelectionType'),'alt') && ~CheckZoom && (~isfield(AxeData,'Drawing')||~isequal(AxeData.Drawing,'create'))380 hother=findobj('Tag','proj_object');%find all the proj objects381 nbselect=0;382 %test the existence of selected objects:383 for iproj=1:length(hother);384 iselect=isequal(get(hother(iproj),'Selected'),'on');%reset all the proj objects in 'blue' by default385 nbselect=nbselect+iselect;386 end387 hother=findobj('Tag','proj_object','Type','line');%find all the proj objects388 set(hother,'Color','b');%reset all the proj objects in 'blue' by default389 set(hother,'Selected','off')390 hother=findobj('Tag','proj_object','Type','rectangle');391 set(hother,'EdgeColor','b');392 set(hother,'Selected','off')393 hother=findobj('Tag','proj_object','Type','patch');394 set(hother,'FaceColor','b');395 if isequal(get(gco,'Type'),'image')396 currentobj=get(gco,'parent');%parent axes of the image397 else398 currentobj=gco;%default399 end400 % if ((nbselect==0) && isequal(get(currentobj,'Type'),'axes')) || isequal(currentobj,huvmat)401 % hcurrentfig=get(currentobj,'parent');402 % figname=get(hcurrentfig,'name');403 % eval(['global Data_' figname])404 % eval(['Data_' figname '=get(currentobj,''UserData'')']);405 % evalin('base',['global Data_' figname])%make CurData global in the workspace406 % objtype=get(currentobj,'Type');407 % display(['UserData of ' objtype ':'])408 % evalin('base',['Data_' figname]) %display CurData in the workspace409 % commandwindow %brings the Matlab command window to the front410 % end411 end412 378 413 379 %% update
Note: See TracChangeset
for help on using the changeset viewer.