Changeset 13026


Ignore:
Timestamp:
08/14/12 09:54:53 (13 years ago)
Author:
Mathieu Morlighem
Message:

NEW: added profile reorientation capability to exptool

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

Legend:

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

    r12088 r13026  
    162162        %display menu
    163163        title('Main Menu','FontSize',14);
    164         button=menu('Menu','add a profile (open)',...%1
    165                 'add a contour (closed)',...              %2
    166                 'remove a profile',...                    %3
    167                 'modify the position of a point',...      %4
    168                 'add points inside a profile',...         %5
    169                 'add points at the end of a profile',...  %6
    170                 'remove points',...                       %7
    171                 'remove several points',...               %8
    172                 'cut a segment',...                       %9
    173                 'cut a large area',...                    %10
    174                 'merge profiles',...                      %11
    175                 'close profile',...                       %12
    176                 'undo',...                                %13
    177                 'redo',...                                %14
    178                 'quit');                                  %15
    179 
     164   UIControl_FontSize_bak = get(0, 'DefaultUIControlFontSize');
     165   set(0, 'DefaultUIControlFontSize',10);
     166   button=menu('exptool menu',...
     167      'add a profile (open)',...                %1
     168      'add a contour (closed)',...              %2
     169      'remove a profile',...                    %3
     170      'modify the position of a point',...      %4
     171      'add points inside a profile',...         %5
     172      'add points at the end of a profile',...  %6
     173      'remove points',...                       %7
     174      'remove several points',...               %8
     175      'cut a segment',...                       %9
     176      'cut a large area',...                    %10
     177      'merge profiles',...                      %11
     178      'close profile',...                       %12
     179                'change orientation',...                  %13
     180      'undo',...                                %14
     181      'redo',...                                %15
     182      'quit');                                  %16
     183   set(0, 'DefaultUIControlFontSize', UIControl_FontSize_bak);
    180184
    181185        %UNDO??
    182         if button==13;
     186        if button==14;
    183187                if counter==1
    184188                        disp('Already at oldest change');
     
    190194                        closed=backup{counter,4};
    191195                end
    192         end
    193 
    194196        %REDO??
    195         if button==14
     197        elseif button==15
    196198                if counter==size(backup,1)
    197199                        disp('Already at newest change');
     
    316318                        backup{counter,4}=closed;
    317319
     320                case 13
     321
     322                        [A,numprofiles,numpoints,closed]=orientprofile(A,numprofiles,numpoints,closed,prevplot,root,options);
     323                        counter=counter+1;
     324                        backup{counter,1}=A;
     325                        backup{counter,2}=numprofiles;
     326                        backup{counter,3}=numpoints;
     327                        backup{counter,4}=closed;
     328
    318329                        %QUIT
    319                 case 15
     330                case 16
    320331
    321332                        loop=0;
    322333
    323334                otherwise
    324 
    325335                        %do nothing
    326 
    327336        end
    328337
Note: See TracChangeset for help on using the changeset viewer.