Changeset 1072 for trunk/src/mouse_up.m


Ignore:
Timestamp:
Jan 17, 2020, 8:13:53 PM (4 years ago)
Author:
sommeria
Message:

LIF updated and bug corrections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mouse_up.m

    r1071 r1072  
    9595    else
    9696        switch ObjectData.Type
    97             case {'line','plane_z'}
     97            case {'line','plane'}
    9898                if size(ObjectData.Coord,1)==1 % this is the mouse up for the first point, continue until next click
    9999                    check_multiple=1;
     
    106106                    check_multiple=1;% pass to next mous up if width of height=0
    107107                end
    108             case 'plane' %case of 'plane', TODO: NOT ACTIVATED
    109                 DX=(xy(1,1)-ObjectData.Coord(1,1));
    110                 DY=(xy(1,2)-ObjectData.Coord(1,2));
    111                 ObjectData.Phi=(angle(DX+i*DY))*180/pi;%rectangle width
    112                 if isfield(ObjectData,'RangeX')
    113                     XMax=sqrt(DX*DX+DY*DY);
    114                     if XMax>max(ObjectData.RangeX)
    115                         ObjectData.RangeX=[min(ObjectData.RangeX) XMax];
    116                     end
    117                 end
     108%             case 'plane' %case of 'plane', TODO: NOT ACTIVATED
     109%                 DX=(xy(1,1)-ObjectData.Coord(1,1));
     110%                 DY=(xy(1,2)-ObjectData.Coord(1,2));
     111%                 ObjectData.Phi=(angle(DX+i*DY))*180/pi;%rectangle width
     112%                 if isfield(ObjectData,'RangeX')
     113%                     XMax=sqrt(DX*DX+DY*DY);
     114%                     if XMax>max(ObjectData.RangeX)
     115%                         ObjectData.RangeX=[min(ObjectData.RangeX) XMax];
     116%                     end
     117%                 end
    118118            otherwise
    119119                check_multiple=1;
Note: See TracChangeset for help on using the changeset viewer.