Ignore:
Timestamp:
Jul 11, 2013, 6:45:32 PM (8 years ago)
Author:
sommeria
Message:

bug corrected again in xml2struct, PLOT and copy of points improved in geometry_calib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mouse_motion.m

    r660 r663  
    5151test_edit_object=0;% edit test for mouse shap: an arrow
    5252test_ruler=0;%test for active ruler
     53test_transform=0;
    5354huvmat=findobj(allchild(0),'tag','uvmat');%find the uvmat interface handle
    5455if ~isempty(huvmat)
     
    5657    test_edit_object=get(hhuvmat.CheckEditObject,'Value');
    5758    test_ruler=isequal(get(hhuvmat.MenuRuler,'checked'),'on');
     59    test_transform=~isequal(get(hhuvmat.TransformName,'Value'),1)
    5860end
    5961test_piv=0;
     
    379381        h_ListCoord=hh_geometry_calib.ListCoord; %findobj(h_geometry_calib,'Tag','ListCoord');
    380382        data.Coord=get(h_ListCoord,'Data');
    381 %         data.Coord(:,6)=[];
    382        % data=read_geometry_calib(Coord);%transform char cell to numbers
    383383        if isnumeric(data.Coord)&&~isempty(data.Coord)
     384            if test_transform
     385                            XCoord=(data.Coord(:,1));
     386            YCoord=(data.Coord(:,2));
     387            else
    384388            XCoord=(data.Coord(:,4));
    385389            YCoord=(data.Coord(:,5));
     390            end
    386391            xy=get(CurrentAxes,'CurrentPoint');%xy(1,1),xy(1,2): current x,y positions in axes coordinates
    387392            if ~isempty(xy)
     
    397402                end
    398403                hh=findobj('Tag','calib_points');%look for handle of calibration points
    399                if ~isempty(hh) && ~isempty(get(hh,'UserData')) && get(hh_geometry_calib.CheckEnableMouse,'Value')
     404               if ~isempty(hh) && ~isempty(get(hh,'UserData')) %&& get(hh_geometry_calib.CheckEnableMouse,'Value')
    400405                   %set(hh,'UserData',index_point)
    401406                    index_point=get(hh,'UserData');
Note: See TracChangeset for help on using the changeset viewer.