Ignore:
Timestamp:
Jan 27, 2015, 9:21:37 AM (9 years ago)
Author:
sommeria
Message:

bug_repair

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mouse_motion.m

    r858 r859  
    7373    test_piv=1;
    7474end
    75 
    7675%find the current axe 'CurrentAxes' and display the current mouse position or uicontrol tag
    7776text_displ_1='';
     
    126125        end
    127126    end
    128     FigData=get(hCurrentFig,'UserData');
    129     tagaxes=get(CurrentAxes,'tag');
     127    FigData=get(hCurrentFig,'UserData'); % user data of the current figure
     128    tagaxes=get(CurrentAxes,'tag'); % tag name of the current axes, for instance PlotAxes
    130129    if isfield(FigData,tagaxes)
    131         Field=FigData.(tagaxes);
     130        Field=FigData.(tagaxes); % the current field is sought as substructure of FigData with key tagaxes
    132131        if isfield(Field,'ListVarName')
    133132            [CellInfo,NbDimArray]=find_field_cells(Field);%analyse the physical fields contained in Field
     
    227226                    pos=cos_om*pos+sin_om*cross(OmAxis,pos)+(1-cos_om)*(OmAxis*pos')*OmAxis;
    228227                end
    229                % pos=pos+[Field.ProjObjectCoord 0];
    230228               pos=pos+Field.ProjObjectCoord;
    231229                text_displ_3=[text_displ_3 'x,y,z=' num2str(pos,4)];
    232230            end
    233             %                     if ~isempty(z)
    234             %                         text_displ_1=[text_displ_1 ' z=' num2str(z,4)];
    235             %                     end
    236231            % case of PIV correlation display
    237232            if test_piv
     
    260255                yround=Field.Y(ind_pt);
    261256               
    262                 % mark the correlation box with a rectangle
     257                % mark the correlation box with a rectangle in view_field
    263258                ibx2=floor((par_civ.CorrBoxSize(1)-1)/2);
    264259                iby2=floor((par_civ.CorrBoxSize(2)-1)/2);
Note: See TracChangeset for help on using the changeset viewer.