Changeset 89 for trunk/src/mouse_up.m
- Timestamp:
- May 20, 2010, 1:48:25 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_up.m
r82 r89 1 1 %'mouse_up': function activated when the mouse button is released 2 %---------------------------------------------------------------- 2 %------------------------------------------------------------------------ 3 3 % function mouse_up(hObject,eventdata,handles) 4 4 % activated by the command: 5 5 % set(hObject,'WindowButtonUpFcn',{'mouse_up'}), 6 6 % where hObject is the handle of the figure 7 % 8 %AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 7 8 %AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 9 9 % Copyright Joel Sommeria, 2008, LEGI / CNRS-UJF-INPG, sommeria@coriolis-legi.org. 10 %AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 10 %AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 11 11 % This file is part of the toolbox UVMAT. 12 12 % … … 20 20 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 21 % GNU General Public License (file UVMAT/COPYING.txt) for more details. 22 %AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 22 %AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 23 23 24 24 function mouse_up(hObject,eventdata,handles) … … 344 344 end 345 345 if ((nbselect==0) && isequal(get(currentobj,'Type'),'axes')) || isequal(currentobj,huvmat) 346 global CurData347 CurData=get(currentobj,'UserData');346 global Data_uvmat 347 Data_uvmat=get(currentobj,'UserData'); 348 348 %plot_text(CurData) 349 349 %get_field([],CurData); 350 evalin('base','global CurData')%make CurData global in the workspace350 evalin('base','global Data_uvmat')%make CurData global in the workspace 351 351 objtype=get(currentobj,'Type'); 352 352 display(['UserData of ' objtype ':']) 353 evalin('base',' CurData') %display CurData in the workspace353 evalin('base','Data_uvmat') %display CurData in the workspace 354 354 commandwindow %brings the Matlab command window to the front 355 355 end
Note: See TracChangeset
for help on using the changeset viewer.