Changeset 150 for trunk/src/mouse_down.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_down.m

    r102 r150  
    3333UvData=get(huvmat,'UserData');
    3434MouseAction='none'; %default
    35 testzoom=get(guihandles.zoom,'Value');% get the mouse action from the uvmat GUI: options:
     35currentfig=hObject;
     36hhcurrentfig=guidata(currentfig);
     37test_zoom=get(hhcurrentfig.zoom,'Value')
     38%test_zoom=get(guihandles.zoom,'Value');% get the mouse action from the uvmat GUI: options:
    3639if isfield(UvData,'MouseAction')
    3740    MouseAction=UvData.MouseAction;% get the mouse action from the uvmat GUI: options:
    3841end
    3942
    40 test_create=~testzoom && (isequal(MouseAction,'create_object') || isequal(MouseAction,'create_mask'));
     43test_create=~test_zoom && (isequal(MouseAction,'create_object') || isequal(MouseAction,'create_mask'));
    4144%test_cal=get(handles.cal,'Value');
    4245test_cal=strcmp(MouseAction,'calib');
     
    111114
    112115% zoom has first priority
    113 if testzoom %&& ~test_create && ~test_edit && ~test_edit_vect && exist('xy','var')
     116if test_zoom %&& ~test_create && ~test_edit && ~test_edit_vect && exist('xy','var')
    114117     AxeData.Drawing='zoom'; %initiate drawing mode
    115118     AxeData.CurrentObject=[];%unselect objects
     
    261264
    262265% create calibration points if the GUI geometry_calib is opened, if the main axes axes3 of uvmat has ben selected
    263 if ~testzoom && test_cal && ~isempty(haxes) && strcmp(get(haxes,'tag'),'axes3')
     266if ~test_zoom && test_cal && ~isempty(haxes) && strcmp(get(haxes,'tag'),'axes3')
    264267    h_geometry_calib=findobj(allchild(0),'Name','geometry_calib'); %find the geomterty_calib GUI
    265268    hh_geometry_calib=guidata(h_geometry_calib);
Note: See TracChangeset for help on using the changeset viewer.