Changeset 581 for trunk/src/set_object.m


Ignore:
Timestamp:
Mar 12, 2013, 12:52:13 PM (8 years ago)
Author:
sommeria
Message:

clean the transform field functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/set_object.m

    r569 r581  
    249249    switch Type
    250250        case {'points','line','polyline','plane'}
    251             menu_proj={'projection';'interp';'filter';'none'};
     251            menu_proj={'projection';'interp_lin';'interp_tps';'none'};
    252252        case {'polygon','rectangle','ellipse'}
    253253            menu_proj={'inside';'outside';'mask_inside';'mask_outside'};
    254254        case 'volume'
    255             menu_proj={'interp';'none'};
     255            menu_proj={'interp_lin';'none'};
    256256        otherwise
    257             menu_proj={'projection';'interp';'filter';'none'};%default
     257            menu_proj={'projection';'interp_lin';'interp_tps';'none'};%default
    258258    end
    259259else
     
    288288set(handles.num_RangeX_2,'Visible','off')
    289289set(handles.num_RangeY_1,'Visible','off')
    290 if isequal(ProjMode,'interp')
     290if isequal(ProjMode,'interp_lin')
    291291    set(handles.num_RangeY_2,'Visible','off')
    292292else
     
    315315%         set(handles.YObject,'TooltipString','YObject: set of y coordinates defining the line')
    316316%         set(handles.ZObject,'TooltipString','ZObject: set of z coordinates defining the line')
    317         if isequal(ProjMode,'interp')|| isequal(ProjMode,'filter')
     317        if isequal(ProjMode,'interp_lin')|| isequal(ProjMode,'interp_tps')
    318318            set(handles.num_DX,'Visible','on')
    319319            set(handles.num_DX,'TooltipString','num_DX: mesh for the interpolated field along the line')
     
    338338            set(handles.num_RangeZ_2,'Visible','on')
    339339        end
    340         if isequal(ProjMode,'interp')|| isequal(ProjMode,'filter')
     340        if isequal(ProjMode,'interp_lin')|| isequal(ProjMode,'interp_tps')
    341341            set(handles.num_DX,'Visible','on')
    342342            set(handles.num_DY,'Visible','on')
     
    345345            set(handles.num_DY,'Visible','off')
    346346        end
    347         if  isequal(ProjMode,'interp')
     347        if  isequal(ProjMode,'interp_lin')
    348348            set(handles.num_DZ,'Visible','on') 
    349349        end
     
    360360        set(handles.num_RangeZ_1,'Visible','on')
    361361        set(handles.num_RangeZ_2,'Visible','on')
    362         if isequal(ProjMode,'interp')|| isequal(ProjMode,'filter')
     362        if isequal(ProjMode,'interp_lin')|| isequal(ProjMode,'interp_tps')
    363363            set(handles.num_DX,'Visible','on')
    364364            set(handles.num_DY,'Visible','on')
     
    485485    PlotType='text';
    486486else
    487     % create tps coeff if needed for ProjMode 'filter'
    488     if strcmp(ObjectData.ProjMode,'filter')&&~isfield(UvData.Field,'Coord_tps')     
     487    % create tps coeff if needed for ProjMode 'interp_tps'
     488    if strcmp(ObjectData.ProjMode,'interp_tps')&&~isfield(UvData.Field,'Coord_tps')     
    489489        UvData.Field=calc_tps(UvData.Field,1);
    490490    end
Note: See TracChangeset for help on using the changeset viewer.