Changeset 187 for trunk/src/mouse_down.m
- Timestamp:
- Feb 1, 2011, 1:07:28 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_down.m
r177 r187 30 30 hhuvmat=guidata(huvmat);%handles of elements in uvmat 31 31 UvData=get(huvmat,'UserData'); 32 currentfig=hObject; 33 hhcurrentfig=guidata(currentfig); 32 FigData=get(hObject,'UserData'); 33 if ishandle(FigData)% case of a zoom plot, the handle of the parent rectangle is stored in UserData, its parent is the plotting axes of the rectangle 34 hcurrentfig=get(get(FigData,'parent'),'parent'); 35 else 36 hcurrentfig=hObject;%usual plot 37 end 38 hhcurrentfig=guidata(hcurrentfig); 34 39 test_zoom=get(hhcurrentfig.zoom,'Value');%test for zoom action, first priority 35 40 test_ruler=isequal(get(hhuvmat.MenuRuler,'checked'),'on');%test for ruler action, second priority; … … 58 63 %% determine the currently selected items 59 64 hcurrentobject=gco;% current object handle (selected by the mouse) 60 hcurrentfig=hObject;% current figure handle65 %hcurrentfig=hObject;% current figure handle 61 66 fig_tag=get(hcurrentfig,'Tag'); 62 67 tag_obj=get(gco,'Tag');%tag of the currently selected object 63 68 xy=[];%default 64 xy_fig=get(h currentfig,'CurrentPoint');% current point of the current figure (gcbo)65 hchild=get(h currentfig,'Children');%handles of all objects in the current figure69 xy_fig=get(hObject,'CurrentPoint');% current point of the current figure (gcbo) 70 hchild=get(hObject,'Children');%handles of all objects in the current figure 66 71 haxes=[]; 67 72 … … 106 111 end 107 112 end 108 test2D=0; 109 if isfield(AxeData,'NbDim') 110 if isequal(AxeData.NbDim,2) 111 test2D=1; 112 end 113 end 114 if ~test2D %desable object creation and vector editing if NbDim different from 2 113 114 %% desable object creation and vector editing if NbDim different from 2 115 if ~(isfield(AxeData,'NbDim') && isequal(AxeData.NbDim,2)) 115 116 test_create=0; 116 test_edit_vect=0; 117 end 118 %delete the current zoom rectangle 117 test_edit_vect=0; 118 end 119 120 %% delete the current zoom rectangle 119 121 if isfield(AxeData,'CurrentRectZoom') & ishandle(AxeData.CurrentRectZoom) 120 122 delete(AxeData.CurrentRectZoom)
Note: See TracChangeset
for help on using the changeset viewer.