Changeset 954 for trunk/src/mouse_up.m


Ignore:
Timestamp:
Jun 22, 2016, 1:36:50 PM (5 years ago)
Author:
sommeria
Message:

update calib modfied + various updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mouse_up.m

    r924 r954  
    9595    else
    9696        switch ObjectData.Type
    97             case {'line'}
     97            case {'line','plane_z'}
    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'
     108            case 'plane' %case of 'plane', TODO: NOT ACTIVATED
    109109                DX=(xy(1,1)-ObjectData.Coord(1,1));
    110110                DY=(xy(1,2)-ObjectData.Coord(1,2));
     
    116116                    end
    117117                end
     118            case 'plane_z'
     119                if size(ObjectData.Coord,1)==1 % this is the mouse up for the first point, continue until next click
     120                    check_multiple=1;
     121                end
     122                DX=(xy(1,1)-ObjectData.Coord(1,1));
     123                DY=(xy(1,2)-ObjectData.Coord(1,2));
     124                ObjectData.Phi=(angle(DX+i*DY))*180/pi;%rectangle width
    118125            otherwise
    119126                check_multiple=1;
Note: See TracChangeset for help on using the changeset viewer.