Changeset 150 for trunk/src/mouse_up.m


Ignore:
Timestamp:
Dec 3, 2010, 12:16:51 PM (13 years ago)
Author:
sommeria
Message:

various corrections for plotting and using view_field and get_field. The current field of uvmat or view_field is now stored in the structure userdata.axes3. Introduction of live correlation to test PIV (civ1)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mouse_up.m

    r102 r150  
    2424function mouse_up(hObject,eventdata,handles)
    2525MouseAction='none'; %default
    26 zoomstate=0;%default
     26test_zoom=0;%default
     27currentfig=hObject;
     28hhcurrentfig=guidata(currentfig);
     29test_zoom=get(hhcurrentfig.zoom,'Value');
    2730if ~exist('handles','var')
    2831   handles=get(gcbo,'UserData');
     
    3538        MouseAction=UvData.MouseAction;% set the mouse action (edit, create objects...)
    3639    end
    37     zoomstate=get(hhuvmat.zoom,'Value');
     40%     test_zoom=get(hhuvmat.zoom,'Value');
    3841end
    3942currentfig=hObject;
     
    206209end
    207210%zoom in by a factor 2 if no new figure is created
    208 if zoomstate
     211if test_zoom
    209212    xy=get(currentaxes,'CurrentPoint');%xy(1,1),xy(1,2): current x,y positions in axes coordinates
    210213     if  isequal(get(currentfig,'SelectionType'),'normal');%if left button has been pressed
     
    268271
    269272% editing calibration point
    270 if ~zoomstate && strcmp(MouseAction,'calib')
     273if ~test_zoom && strcmp(MouseAction,'calib')
    271274    h_geometry_calib=findobj(allchild(0),'Name','geometry_calib'); %find the geomterty_calib GUI
    272275    hh_geometry_calib=guidata(h_geometry_calib);
     
    314317
    315318%display the data of the current object selected with the mouse right click
    316 if isequal(get(currentfig,'SelectionType'),'alt') && ~zoomstate && (~isfield(AxeData,'Drawing')||~isequal(AxeData.Drawing,'create'))
     319if isequal(get(currentfig,'SelectionType'),'alt') && ~test_zoom && (~isfield(AxeData,'Drawing')||~isequal(AxeData.Drawing,'create'))
    317320    hother=findobj('Tag','proj_object');%find all the proj objects
    318321    nbselect=0;
Note: See TracChangeset for help on using the changeset viewer.