- Timestamp:
- Apr 27, 2010, 7:56:28 PM (15 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/civ.m
r86 r87 2133 2133 2134 2134 % 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 end2140 [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 end2149 else2150 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 return2154 end2155 end2135 % 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 2156 2156 2157 2157 % set the list of files and check them -
trunk/src/mouse_down.m
r78 r87 30 30 end 31 31 hhuvmat=guidata(huvmat);%handles of elements in uvmat 32 guihandles=guidata(hObject); 32 33 UvData=get(huvmat,'UserData'); 33 34 MouseAction='none'; %default 34 testzoom=get( hhuvmat.zoom,'Value');% get the mouse action from the uvmat GUI: options:35 testzoom=get(guihandles.zoom,'Value');% get the mouse action from the uvmat GUI: options: 35 36 if isfield(UvData,'MouseAction') 36 37 MouseAction=UvData.MouseAction;% get the mouse action from the uvmat GUI: options: -
trunk/src/uvmat.m
r86 r87 2637 2637 %Projeter les champs sur l'objet:* 2638 2638 ObjectData=proj_field(UvData.Field,UvData.Object{iobj},iobj); 2639 if imap==22640 UvData.ProjField_2=ObjectData;%store the projection field on uvmat: ***** WILL REPLACE THE FIELD SORED ON THE AXES: AxeData *****2641 else2642 UvData.ProjField_1=ObjectData;%store the projection field on view_field2643 end2639 % 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 2644 2644 %use of mask 2645 2645 if isfield(ObjectData,'NbDim')&isequal(ObjectData.NbDim,2) -
trunk/src/view_field.m
r85 r87 91 91 set(hObject,'CloseRequestFcn',{@closefcn})% 92 92 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) 94 set(handles.axes3,'UserData',Field);%store the current field 95 95 if isfield(PlotParamOut,'Vectors') 96 96 set(handles.VECT_title,'Visible','on') 97 97 end 98 handles99 98 write_plot_param(handles,PlotParamOut);% update the display of the plotting parameters 100 99 … … 2340 2339 haxes= handles.axes3; 2341 2340 huvmat=findobj(allchild(0),'tag','uvmat'); 2342 UvData=get(huvmat,'UserData');2341 ProjField=get(haxes,'UserData'); 2343 2342 % 2344 2343 % AxeData=get(haxes,'UserData'); 2345 2344 PlotParam=read_plot_param(handles); 2346 [PlotType,PlotParamOut]= plot_field( UvData.ProjField_2,haxes,PlotParam,1);2345 [PlotType,PlotParamOut]= plot_field(ProjField,haxes,PlotParam,1); 2347 2346 write_plot_param(handles,PlotParamOut); %update the auto plot parameters 2348 2347
Note: See TracChangeset
for help on using the changeset viewer.