Changeset 87 for trunk/src


Ignore:
Timestamp:
Apr 27, 2010, 7:56:28 PM (15 years ago)
Author:
sommeria
Message:

improvement of vioew_field
suppress spurious 'todo' path in civ

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/civ.m

    r86 r87  
    21332133
    21342134% for Windows system find the UBC path name if needed
    2135 if ~isunix & isequal(todo_path(1:2),'\\') & isequal(filebase(2:3),':\')
    2136     cur_dir=pwd;
    2137     if ~isequal(cur_dir(2:3),':\')
    2138         cd(matlabroot); %move to the Matlab root directory if the current Matlab dir does not allow the dos command or is M:
    2139     end
    2140     [ss,ww]=dos(['net use ' filebase(1:2)]);
    2141     if isequal(ss,0)
    2142         rankpath=findstr(ww,'\\');
    2143         if ~isempty(rankpath)
    2144             wwrest=ww(rankpath:end);
    2145             rankend=min(find(double(wwrest)==10))-1;
    2146             filebase=[wwrest(1:rankend) filebase(3:end)];
    2147             set(handles.RootName,'String',filebase);
    2148         end
    2149     else
    2150          msgbox_uvmat('ERROR','for BATCH option, UBC file names, beginning by \\, are needed');
    2151 %          set(handles.BATCH, 'Enable','On')
    2152 %          set(handles.BATCH,'BackgroundColor',[1 0 0])
    2153          return
    2154     end
    2155 end
     2135% if ~isunix & isequal(todo_path(1:2),'\\') & isequal(filebase(2:3),':\')
     2136%     cur_dir=pwd;
     2137%     if ~isequal(cur_dir(2:3),':\')
     2138%         cd(matlabroot); %move to the Matlab root directory if the current Matlab dir does not allow the dos command or is M:
     2139%     end
     2140%     [ss,ww]=dos(['net use ' filebase(1:2)]);
     2141%     if isequal(ss,0)
     2142%         rankpath=findstr(ww,'\\');
     2143%         if ~isempty(rankpath)
     2144%             wwrest=ww(rankpath:end);
     2145%             rankend=min(find(double(wwrest)==10))-1;
     2146%             filebase=[wwrest(1:rankend) filebase(3:end)];
     2147%             set(handles.RootName,'String',filebase);
     2148%         end
     2149%     else
     2150%          msgbox_uvmat('ERROR','for BATCH option, UBC file names, beginning by \\, are needed');
     2151% %          set(handles.BATCH, 'Enable','On')
     2152% %          set(handles.BATCH,'BackgroundColor',[1 0 0])
     2153%          return
     2154%     end
     2155% end
    21562156
    21572157% set the list of files and check them
  • trunk/src/mouse_down.m

    r78 r87  
    3030end
    3131hhuvmat=guidata(huvmat);%handles of elements in uvmat
     32guihandles=guidata(hObject);
    3233UvData=get(huvmat,'UserData');
    3334MouseAction='none'; %default
    34 testzoom=get(hhuvmat.zoom,'Value');% get the mouse action from the uvmat GUI: options:
     35testzoom=get(guihandles.zoom,'Value');% get the mouse action from the uvmat GUI: options:
    3536if isfield(UvData,'MouseAction')
    3637    MouseAction=UvData.MouseAction;% get the mouse action from the uvmat GUI: options:
  • trunk/src/uvmat.m

    r86 r87  
    26372637        %Projeter les champs sur l'objet:*
    26382638        ObjectData=proj_field(UvData.Field,UvData.Object{iobj},iobj);
    2639         if imap==2
    2640             UvData.ProjField_2=ObjectData;%store the projection field on uvmat: ***** WILL REPLACE THE FIELD SORED ON THE AXES: AxeData *****
    2641         else
    2642             UvData.ProjField_1=ObjectData;%store the projection field on view_field
    2643         end
     2639%         if imap==2
     2640%             UvData.ProjField_2=ObjectData;%store the projection field on uvmat: ***** WILL REPLACE THE FIELD SORED ON THE AXES: AxeData *****
     2641%         else
     2642%             UvData.ProjField_1=ObjectData;%store the projection field on view_field
     2643%         end
    26442644        %use of mask
    26452645        if isfield(ObjectData,'NbDim')&isequal(ObjectData.NbDim,2)
  • trunk/src/view_field.m

    r85 r87  
    9191set(hObject,'CloseRequestFcn',{@closefcn})%
    9292
    93 [PlotType,PlotParamOut,haxes]= plot_field(Field,handles.axes3)%,PlotParam,KeepLim,PosColorbar)
    94 'TEST'
     93[PlotType,PlotParamOut,haxes]= plot_field(Field,handles.axes3);%,PlotParam,KeepLim,PosColorbar)
     94set(handles.axes3,'UserData',Field);%store the current field
    9595if isfield(PlotParamOut,'Vectors')
    9696    set(handles.VECT_title,'Visible','on')
    9797end
    98 handles
    9998write_plot_param(handles,PlotParamOut);% update the display of the plotting parameters
    10099
     
    23402339haxes= handles.axes3;
    23412340huvmat=findobj(allchild(0),'tag','uvmat');
    2342 UvData=get(huvmat,'UserData');
     2341ProjField=get(haxes,'UserData');
    23432342%
    23442343% AxeData=get(haxes,'UserData');
    23452344PlotParam=read_plot_param(handles);
    2346 [PlotType,PlotParamOut]= plot_field(UvData.ProjField_2,haxes,PlotParam,1);
     2345[PlotType,PlotParamOut]= plot_field(ProjField,haxes,PlotParam,1);
    23472346write_plot_param(handles,PlotParamOut); %update the auto plot parameters
    23482347
Note: See TracChangeset for help on using the changeset viewer.