Changeset 38 for trunk/src/get_field.m


Ignore:
Timestamp:
Mar 7, 2010, 6:30:11 PM (11 years ago)
Author:
sommeria
Message:

field transforms put in subdir transform_field. cleaning of obsolete functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/get_field.m

    r34 r38  
    543543    DimIndex_v(ind)=[];%Mremove singleton
    544544    if ~isequal(DimIndex_u,DimIndex_v)
    545         warndlg_uvmat('inconsistent dimensions for u and v','ERROR')
     545        msgbox_uvmat('ERROR','inconsistent dimensions for u and v')
    546546        set(handles.vector_y,'Value',1);
    547547        return
    548548    elseif  test_scalar & ~isequal(DimIndex_u,DimIndex)
    549          warndlg_uvmat('inconsistent dimensions for vector and scalar represented as vector color','ERROR')
     549         msgbox_uvmat('ERROR','inconsistent dimensions for vector and scalar represented as vector color')
    550550         set(handles.scalar,'Value',1);
    551551         return
     
    561561    nbdim=length(DimIndex);
    562562    if nbdim > 3
    563         warndlg_uvmat('array with more than three dimensions, not supported','ERROR')
     563        msgbox_uvmat('ERROR','array with more than three dimensions, not supported')
    564564        return
    565565    else
     
    590590                test_grid=1;
    591591            else
    592                 warndlg_uvmat('multiple dimensions for the z coordinate','ERROR')
     592                msgbox_uvmat('ERROR','multiple dimensions for the z coordinate')
    593593                return
    594594            end
     
    634634        end
    635635    elseif test_grid
    636         warndlg_uvmat('the dimension of the y coordinate variable should be 1','ERROR')   
     636        msgbox_uvmat('ERROR','the dimension of the y coordinate variable should be 1')   
    637637    end
    638638end
     
    677677        DimIndex=DimIndex(perm_ind);
    678678    elseif test_grid
    679         warndlg_uvmat('the dimension of the x coordinate variable should be 1','ERROR')   
     679        msgbox_uvmat('ERROR','the dimension of the x coordinate variable should be 1')   
    680680    end
    681681    if isequal(DimIndex_x,DimIndex)
     
    12821282    check_vector_Callback(hObject, eventdata, handles)
    12831283end
    1284 %
    1285 % % --- Executes on selection change in menu_coord.
    1286 % function menu_coord_Callback(hObject, eventdata, handles)
    1287 % hget_field=get(handles.menu_coord,'parent');
    1288 % menu=get(handles.menu_coord,'String');
    1289 % ind_coord=get(handles.menu_coord,'Value');
    1290 % coord_option=menu{ind_coord};
    1291 % if isequal(coord_option,'more...');
    1292 %     fct_name='';
    1293 %     if exist('./TMP/current_usr_fct.mat','file')% if a file is found
    1294 %         h=load('./TMP/current_usr_fct.mat');
    1295 %         if isfield(h,'fct_name');
    1296 %             fct_name=h.fct_name;
    1297 %         end
    1298 %     end
    1299 %     prompt = {'Enter the name of the transform function'};
    1300 %     dlg_title = 'user defined transform';
    1301 %     num_lines= 1;
    1302 %     [FileName, PathName, filterindex] = uigetfile( ...
    1303 %        {'*.m', ' (*.m)';
    1304 %         '*.m',  '.m files '; ...
    1305 %         '*.*', 'All Files (*.*)'}, ...
    1306 %         'Pick a file', fct_name);
    1307 %     fct_name=fullfile(PathName,FileName);
    1308 %     addpath(PathName);%add the path to the selected fct
    1309 %     [errormsg,date_str]=check_functions;%check whether new functions can oversed the uvmat package A UTILISER
    1310 %     if ~exist(fct_name,'file')
    1311 %            warndlg_uvmat(['image procesing fct ' fct_name ' not found'],'WARNING')
    1312 %     else
    1313 %         transform=FileName(1:end-2);%
    1314 %         menu=update_menu(handles.menu_coord,transform);%add the selected fct to the menu
    1315 % %         set(handles.mouse_coord,'String',menu([1:end-1])')%update the mouse coord menu
    1316 %       save ('./TMP/current_usr_fct.mat','fct_name');
    1317 %     end   
    1318 % end
    1319 
    1320 
    13211284
    13221285%-----------------------------------------------------
     
    13301293    name=get(hh(ifig),'Name');
    13311294     if ~isequal(name,'uvmat')%case of uvmat GUI
    1332 %         ilist=ilist+1;
    1333 %         list{ilist,1}='uvmat';
    1334 %     else        %other figures
    13351295        hchild=get(hh(ifig),'children');% look for axes contained in each figure
    13361296        nbaxe=0;
Note: See TracChangeset for help on using the changeset viewer.