Changeset 855 for trunk/src/mouse_down.m


Ignore:
Timestamp:
Jan 23, 2015, 9:48:26 AM (9 years ago)
Author:
sommeria
Message:

testcivadded

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mouse_down.m

    r809 r855  
    246246end
    247247
    248 if isempty(huvmat)%further options require the uvmat GUI
    249     return
    250 end
    251 
    252 %% ruler has second priority
    253 if test_ruler && ~isempty(xy)
    254     AxeData.RulerCoord(1,1:2)=xy(1,1:2);
    255     AxeData.RulerHandle=line([xy(1,1) xy(1,1)],[xy(1,2) xy(1,2)],'Color','m','Tag','ruler');
    256     AxeData.Drawing='ruler';
    257     set(hchild,'UserData',AxeData);
    258     return
    259 end
    260 
    261248%% PIV test
    262249if test_piv
     
    268255    copyobj(AxeData.TitleHandle,newaxes)
    269256    colorbar
    270 end
     257    % export image correlation matrix and local U,V values in the work space
     258    global DataCorrImage
     259    DataCorrImage.Corr=get(AxeData.CurrentCorrImage,'CData');
     260    Uvec=get(AxeData.CurrentVector,'XData');
     261    DataCorrImage.U=Uvec(2);
     262    Vvec=get(AxeData.CurrentVector,'YData');
     263    DataCorrImage.V=Vvec(2);
     264    evalin('base','global DataCorrImage')%make CurData global in the workspace
     265    evalin('base','DataCorrImage') %display CurData in the workspace
     266    commandwindow; %brings the Matlab command window to the front
     267end
     268
     269if isempty(huvmat)%further options require the uvmat GUI
     270    return
     271end
     272
     273%% ruler has second priority
     274if test_ruler && ~isempty(xy)
     275    AxeData.RulerCoord(1,1:2)=xy(1,1:2);
     276    AxeData.RulerHandle=line([xy(1,1) xy(1,1)],[xy(1,2) xy(1,2)],'Color','m','Tag','ruler');
     277    AxeData.Drawing='ruler';
     278    set(hchild,'UserData',AxeData);
     279    return
     280end
     281
    271282
    272283%% desable  object creation and vector editing if NbDim different from 2
Note: See TracChangeset for help on using the changeset viewer.