Changeset 413 for trunk/src/mouse_down.m


Ignore:
Timestamp:
May 8, 2012, 2:27:50 PM (12 years ago)
Author:
sommeria
Message:

various bugs corrected and improvement in civ1_TEST

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mouse_down.m

    r410 r413  
    4040    test_zoom=0;
    4141end
     42test_piv=isfield(FigData,'CivHandle');
    4243
    4344%% look for parameters set by the GUI uvmat
     
    5253    test_edit=get(hhuvmat.edit_object,'Value');%test for object editing, third priority
    5354    test_edit_vect=get(hhuvmat.edit_vect,'Value');%test for vector editing,  priority 4
    54     test_create=isequal(get(hhuvmat.MenuObject,'checked'),'on');% test for object creation,  priority 5
    55     if test_create
    56         hset_object=findobj(allchild(0),'tag','set_object');
    57         test_create=~isempty(hset_object)&&~test_edit;
    58     end
     55    %     test_create=isequal(get(hhuvmat.MenuObject,'checked'),'on');% test for object creation,  priority 5
     56    %     if test_create
     57    test_create=0;
     58    hset_object=findobj(allchild(0),'tag','set_object');
     59    if ~isempty(hset_object)
     60        hPLOT=findobj(hset_object,'tag','PLOT');
     61        test_create=strcmp(get(hPLOT,'enable'),'on') &&~test_edit;
     62    end
     63    %         test_create=~isempty(hset_object)&&~test_edit;
     64   
    5965    test_cal=isequal(get(hhuvmat.MenuCalib,'checked'),'on');% test for calibration
    6066    if test_cal% test for calibration popints,  priority 6
     
    194200end
    195201
     202%% PIV test
     203if test_piv
     204    figure
     205    newaxes=axes;
     206    copyobj(AxeData.CurrentCorrImage,newaxes);
     207    set(newaxes,'CLim',[0 1])
     208    copyobj(AxeData.CurrentVector,newaxes)
     209    copyobj(AxeData.TitleHandle,newaxes)
     210    colorbar
     211end
     212
    196213%% selection of an existing projection object (third priority)
    197214if  test_edit && (isequal(tag_obj,'proj_object')||isequal(tag_obj,'DeformPoint'))
Note: See TracChangeset for help on using the changeset viewer.