Changeset 855 for trunk/src/mouse_down.m
- Timestamp:
- Jan 23, 2015, 9:48:26 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_down.m
r809 r855 246 246 end 247 247 248 if isempty(huvmat)%further options require the uvmat GUI249 return250 end251 252 %% ruler has second priority253 if test_ruler && ~isempty(xy)254 AxeData.RulerCoord(1,1:2)=xy(1,1:2);255 AxeData.RulerHandle=line([xy(1,1) xy(1,1)],[xy(1,2) xy(1,2)],'Color','m','Tag','ruler');256 AxeData.Drawing='ruler';257 set(hchild,'UserData',AxeData);258 return259 end260 261 248 %% PIV test 262 249 if test_piv … … 268 255 copyobj(AxeData.TitleHandle,newaxes) 269 256 colorbar 270 end 257 % export image correlation matrix and local U,V values in the work space 258 global DataCorrImage 259 DataCorrImage.Corr=get(AxeData.CurrentCorrImage,'CData'); 260 Uvec=get(AxeData.CurrentVector,'XData'); 261 DataCorrImage.U=Uvec(2); 262 Vvec=get(AxeData.CurrentVector,'YData'); 263 DataCorrImage.V=Vvec(2); 264 evalin('base','global DataCorrImage')%make CurData global in the workspace 265 evalin('base','DataCorrImage') %display CurData in the workspace 266 commandwindow; %brings the Matlab command window to the front 267 end 268 269 if isempty(huvmat)%further options require the uvmat GUI 270 return 271 end 272 273 %% ruler has second priority 274 if test_ruler && ~isempty(xy) 275 AxeData.RulerCoord(1,1:2)=xy(1,1:2); 276 AxeData.RulerHandle=line([xy(1,1) xy(1,1)],[xy(1,2) xy(1,2)],'Color','m','Tag','ruler'); 277 AxeData.Drawing='ruler'; 278 set(hchild,'UserData',AxeData); 279 return 280 end 281 271 282 272 283 %% desable object creation and vector editing if NbDim different from 2
Note: See TracChangeset
for help on using the changeset viewer.