Changeset 606 for trunk/src/uvmat.m


Ignore:
Timestamp:
Apr 7, 2013, 10:14:45 AM (8 years ago)
Author:
sommeria
Message:

bug on compilation solved (still to test with transform_field fct). faster browser inrtroduced. Various bug corrections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r601 r606  
    341341    oldfile=get(handles.RootPath,'UserData');
    342342end
    343 [FileName, PathName] = uigetfile({'*.*','All Files(*.*)'},'Pick a file',oldfile);
    344 if ~ischar(FileName),return,end %abandon if the browser is cancelled
    345 fileinput=[PathName FileName];%complete file name
     343hfig=uigetfile_uvmat('file browser',fileparts(oldfile));
     344uiwait(hfig);
     345if ishandle(hfig) % stop if browser closed without selection
     346    fileinput=get(hfig,'UserData');% retrieve the input file selection
     347    delete(hfig)
     348    % display the selected field and related information
     349    display_file_name(handles,fileinput)
     350end
     351
     352%
     353%
     354%
     355% [FileName, PathName] = uigetfile({'*.*','All Files(*.*)'},'Pick a file',oldfile);
     356% if ~ischar(FileName),return,end %abandon if the browser is cancelled
     357% fileinput=[PathName FileName];%complete file name
    346358
    347359%% display the selected field and related information
    348 display_file_name( handles,fileinput)
     360% display_file_name( handles,fileinput)
    349361
    350362% -----------------------------------------------------------------------
     
    26732685    for imap=1:numel(IndexObj)
    26742686        iobj=IndexObj(imap);
     2687        if numel(UvData.Object)<iobj
     2688            break
     2689        end
    26752690        [ObjectData,errormsg]=proj_field(UvData.Field,UvData.Object{iobj});% project field on the object
    26762691        if ~isempty(errormsg)
Note: See TracChangeset for help on using the changeset viewer.