Changeset 89 for trunk/src/mouse_up.m


Ignore:
Timestamp:
May 20, 2010, 1:48:25 AM (14 years ago)
Author:
sommeria
Message:

many bug corrections and cleaning. Activation of the BW option in uvmat. Improvement of the interaction of get_field with uvmat.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mouse_up.m

    r82 r89  
    11%'mouse_up': function  activated when the mouse button is released
    2 %----------------------------------------------------------------
     2%------------------------------------------------------------------------
    33% function mouse_up(hObject,eventdata,handles)
    44% activated by the command:
    55% set(hObject,'WindowButtonUpFcn',{'mouse_up'}),
    66% where hObject is the handle of the figure
    7 %
    8 %AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
     7
     8%AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    99%  Copyright Joel Sommeria, 2008, LEGI / CNRS-UJF-INPG, sommeria@coriolis-legi.org.
    10 %AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
     10%AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    1111%     This file is part of the toolbox UVMAT.
    1212%
     
    2020%     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    2121%     GNU General Public License (file UVMAT/COPYING.txt) for more details.
    22 %AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
     22%AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    2323
    2424function mouse_up(hObject,eventdata,handles)
     
    344344    end
    345345    if ((nbselect==0) && isequal(get(currentobj,'Type'),'axes')) || isequal(currentobj,huvmat)
    346         global CurData
    347         CurData=get(currentobj,'UserData');
     346        global Data_uvmat
     347        Data_uvmat=get(currentobj,'UserData');
    348348        %plot_text(CurData)
    349349        %get_field([],CurData);
    350         evalin('base','global CurData')%make CurData global in the workspace
     350        evalin('base','global Data_uvmat')%make CurData global in the workspace
    351351        objtype=get(currentobj,'Type');
    352352        display(['UserData of ' objtype ':'])
    353         evalin('base','CurData') %display CurData in the workspace
     353        evalin('base','Data_uvmat') %display CurData in the workspace
    354354        commandwindow %brings the Matlab command window to the front
    355355    end
Note: See TracChangeset for help on using the changeset viewer.