Changeset 682 for trunk/src/mouse_motion.m
- Timestamp:
- Sep 2, 2013, 7:44:19 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_motion.m
r681 r682 26 26 27 27 if ~exist('handles','var') 28 set(hCurrentFig,'Pointer','arrow'); 28 29 return 29 30 end … … 63 64 if ~ishandle(FigData.CivHandle) 64 65 delete(hObject) 66 set(hCurrentFig,'Pointer','arrow'); 65 67 return 66 68 end … … 91 93 end 92 94 if size(PosChildren,2)~=4 95 set(hCurrentFig,'Pointer','arrow'); 93 96 return 94 97 end … … 100 103 101 104 %if the mouse is over an axis, look at the data 102 if strcmp(get(hchild,'Type'),'axes') 105 htype=get(hchild,'Type'); 106 if strcmp(htype,'axes') 103 107 CurrentAxes=hchild; 104 108 xy=get(CurrentAxes,'CurrentPoint');%xy(1,1),xy(1,2): current x,y positions in axes coordinates … … 323 327 %%%%%%%%%%%%%%%%% 324 328 %% create or modify an object 325 if ~isempty(huvmat) && test_object329 if strcmp(htype,'axes') && ~isempty(huvmat) && test_object 326 330 UvData=get(huvmat,'UserData'); 327 331 PlotData=get(AxeData.CurrentObject,'UserData'); 328 332 if ~isfield(PlotData,'IndexObj') 333 set(hCurrentFig,'Pointer','arrow'); 329 334 return 330 335 end … … 375 380 %% detect calibration points if the GUI geometry_calib is opened 376 381 h_geometry_calib=findobj(allchild(0),'Name','geometry_calib'); %find the geomterty_calib GUI 377 if ~CheckZoom && ~isempty(h_geometry_calib)382 if strcmp(htype,'axes') && ~CheckZoom && ~isempty(h_geometry_calib) 378 383 pointershape='crosshair';%default for geometry_calib: ready to create new points 379 384 hh_geometry_calib=guidata(h_geometry_calib); … … 415 420 Data(index_point,6)=1;%mrk the point on the GUI geometry_calib 416 421 set(h_ListCoord,'Data',Data); 417 % set(h_ListCoord,'Value',index_point)%mrk the point on the GUI geometry_calib418 422 hhh=findobj('Tag','calib_marker');%look for handle of point marker (circle) 419 423 if ~isempty(hhh)
Note: See TracChangeset
for help on using the changeset viewer.