Changeset 24302


Ignore:
Timestamp:
10/30/19 15:24:17 (5 years ago)
Author:
Mathieu Morlighem
Message:

CHG: significantly improved speed of exptool

Location:
issm/trunk-jpl/src/m/exp
Files:
2 added
15 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/exp/clicktoflowline.m

    r22876 r24302  
    1212
    1313%Get click position
    14 [x0,y0]=ginput(1);
     14[x0,y0]=exp_ginput(1,options);
    1515
    1616%Get flowline
  • issm/trunk-jpl/src/m/exp/exptool.m

    r23185 r24302  
    9999
    100100%get current figure
    101 nofigurecopy=getfieldvalue(options,'nofigurecopy',0);
     101nofigurecopy=getfieldvalue(options,'nofigurecopy',1);
    102102if ~nofigurecopy,
    103103        if ~isempty(get(0,'children')),%if there is already a figure (return the number of opened figures)
  • issm/trunk-jpl/src/m/exp/operation/addcontour.m

    r13730 r24302  
    1717        while loop
    1818
    19                 [xi,yi] = ginput(1);
     19                [xi,yi] = exp_ginput(1,options);
    2020
    2121                if ~isempty(xi)
  • issm/trunk-jpl/src/m/exp/operation/addendprofile.m

    r13730 r24302  
    2323                title('click on a profile, RETURN to exit','FontSize',14)
    2424                while isclosed
    25                         [xi,yi] = ginput(1);
     25                        [xi,yi] = exp_ginput(1,options);
    2626                        if ~isempty(xi)
    2727                                %get the closest point
     
    5757                %first step, select a profile
    5858                title('click to add point to the selected profile, RETURN to exit','FontSize',14)
    59                 [xi,yi] = ginput(1);
     59                [xi,yi] = exp_ginput(1,options);
    6060
    6161                if ~isempty(xi)
  • issm/trunk-jpl/src/m/exp/operation/addinsideprofile.m

    r13730 r24302  
    3030                %first step, select a segment
    3131                title('click on a segment, RETURN to exit','FontSize',14)
    32                 [xi,yi] = ginput(1);
     32                [xi,yi] = exp_ginput(1,options);
    3333
    3434                %first click
     
    5151                        %next click
    5252                        title('click on the new point''s location, RETURN to exit','FontSize',14)
    53                         [xi,yi,but] = ginput(1);
     53                        [xi,yi,but] = exp_ginput(1,options);
    5454
    5555                        %second click
  • issm/trunk-jpl/src/m/exp/operation/addprofile.m

    r13730 r24302  
    1717        while loop
    1818
    19                 [xi,yi] = ginput(1);
     19                [xi,yi] = exp_ginput(1,options);
    2020
    2121                if ~isempty(xi)
  • issm/trunk-jpl/src/m/exp/operation/closeprofile.m

    r13730 r24302  
    3232                end
    3333
    34                 [xi,yi] = ginput(1);
     34                [xi,yi] = exp_ginput(1,options);
    3535
    3636                if ~isempty(xi)
  • issm/trunk-jpl/src/m/exp/operation/cutarea.m

    r13730 r24302  
    4444                end
    4545
    46                 [xi,yi] = ginput(1);
     46                [xi,yi] = exp_ginput(1,options);
    4747
    4848                if ~isempty(xi)
  • issm/trunk-jpl/src/m/exp/operation/cutprofile.m

    r13730 r24302  
    3030                %select a segment
    3131                title('click the segment to cut, RETURN to exit','FontSize',14)
    32                 [xi,yi] = ginput(1);
     32                [xi,yi] = exp_ginput(1,options);
    3333
    3434                if ~isempty(xi)
  • issm/trunk-jpl/src/m/exp/operation/mergeprofiles.m

    r13730 r24302  
    5454        end
    5555
    56         [xi,yi] = ginput(1);
     56        [xi,yi] = exp_ginput(1,options);
    5757
    5858        if ~isempty(xi)
  • issm/trunk-jpl/src/m/exp/operation/modifyposition.m

    r13730 r24302  
    2727                %select a point to be modified
    2828                title('click on the point to be modified, RETURN to exit','FontSize',14)
    29                 [xi,yi] = ginput(1);
     29                [xi,yi] = exp_ginput(1,options);
    3030
    3131                if ~isempty(xi)
     
    4141                        %select new location
    4242                        title('click on the new location, RETURN to exit','FontSize',14)
    43                         [xi,yi] = ginput(1);
     43                        [xi,yi] = exp_ginput(1,options);
    4444
    4545                        if ~isempty(xi)
  • issm/trunk-jpl/src/m/exp/operation/orientprofile.m

    r13730 r24302  
    2222                end
    2323
    24                 [xi,yi] = ginput(1);
     24                [xi,yi] = exp_ginput(1,options);
    2525
    2626                if ~isempty(xi)
  • issm/trunk-jpl/src/m/exp/operation/removepoints.m

    r13730 r24302  
    3434                %select a point to be deleted
    3535                title('click on the point to be removed, RETURN to exit','FontSize',14)
    36                 [xi,yi] = ginput(1);
     36                [xi,yi] = exp_ginput(1,options);
    3737
    3838                if ~isempty(xi)
  • issm/trunk-jpl/src/m/exp/operation/removeprofile.m

    r13730 r24302  
    2222                end
    2323
    24                 [xi,yi] = ginput(1);
     24                [xi,yi] = exp_ginput(1,options);
    2525
    2626                if ~isempty(xi)
  • issm/trunk-jpl/src/m/exp/operation/removeseveralpoints.m

    r13730 r24302  
    4646                end
    4747
    48                 [xi,yi] = ginput(1);
     48                [xi,yi] = exp_ginput(1,options);
    4949
    5050                if ~isempty(xi)
Note: See TracChangeset for help on using the changeset viewer.