Changeset 859 for trunk/src/mouse_motion.m
- Timestamp:
- Jan 27, 2015, 9:21:37 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_motion.m
r858 r859 73 73 test_piv=1; 74 74 end 75 76 75 %find the current axe 'CurrentAxes' and display the current mouse position or uicontrol tag 77 76 text_displ_1=''; … … 126 125 end 127 126 end 128 FigData=get(hCurrentFig,'UserData'); 129 tagaxes=get(CurrentAxes,'tag'); 127 FigData=get(hCurrentFig,'UserData'); % user data of the current figure 128 tagaxes=get(CurrentAxes,'tag'); % tag name of the current axes, for instance PlotAxes 130 129 if isfield(FigData,tagaxes) 131 Field=FigData.(tagaxes); 130 Field=FigData.(tagaxes); % the current field is sought as substructure of FigData with key tagaxes 132 131 if isfield(Field,'ListVarName') 133 132 [CellInfo,NbDimArray]=find_field_cells(Field);%analyse the physical fields contained in Field … … 227 226 pos=cos_om*pos+sin_om*cross(OmAxis,pos)+(1-cos_om)*(OmAxis*pos')*OmAxis; 228 227 end 229 % pos=pos+[Field.ProjObjectCoord 0];230 228 pos=pos+Field.ProjObjectCoord; 231 229 text_displ_3=[text_displ_3 'x,y,z=' num2str(pos,4)]; 232 230 end 233 % if ~isempty(z)234 % text_displ_1=[text_displ_1 ' z=' num2str(z,4)];235 % end236 231 % case of PIV correlation display 237 232 if test_piv … … 260 255 yround=Field.Y(ind_pt); 261 256 262 % mark the correlation box with a rectangle 257 % mark the correlation box with a rectangle in view_field 263 258 ibx2=floor((par_civ.CorrBoxSize(1)-1)/2); 264 259 iby2=floor((par_civ.CorrBoxSize(2)-1)/2);
Note: See TracChangeset
for help on using the changeset viewer.