Changeset 150 for trunk/src/mouse_down.m
- Timestamp:
- Dec 3, 2010, 12:16:51 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_down.m
r102 r150 33 33 UvData=get(huvmat,'UserData'); 34 34 MouseAction='none'; %default 35 testzoom=get(guihandles.zoom,'Value');% get the mouse action from the uvmat GUI: options: 35 currentfig=hObject; 36 hhcurrentfig=guidata(currentfig); 37 test_zoom=get(hhcurrentfig.zoom,'Value') 38 %test_zoom=get(guihandles.zoom,'Value');% get the mouse action from the uvmat GUI: options: 36 39 if isfield(UvData,'MouseAction') 37 40 MouseAction=UvData.MouseAction;% get the mouse action from the uvmat GUI: options: 38 41 end 39 42 40 test_create=~test zoom && (isequal(MouseAction,'create_object') || isequal(MouseAction,'create_mask'));43 test_create=~test_zoom && (isequal(MouseAction,'create_object') || isequal(MouseAction,'create_mask')); 41 44 %test_cal=get(handles.cal,'Value'); 42 45 test_cal=strcmp(MouseAction,'calib'); … … 111 114 112 115 % zoom has first priority 113 if test zoom %&& ~test_create && ~test_edit && ~test_edit_vect && exist('xy','var')116 if test_zoom %&& ~test_create && ~test_edit && ~test_edit_vect && exist('xy','var') 114 117 AxeData.Drawing='zoom'; %initiate drawing mode 115 118 AxeData.CurrentObject=[];%unselect objects … … 261 264 262 265 % create calibration points if the GUI geometry_calib is opened, if the main axes axes3 of uvmat has ben selected 263 if ~test zoom && test_cal && ~isempty(haxes) && strcmp(get(haxes,'tag'),'axes3')266 if ~test_zoom && test_cal && ~isempty(haxes) && strcmp(get(haxes,'tag'),'axes3') 264 267 h_geometry_calib=findobj(allchild(0),'Name','geometry_calib'); %find the geomterty_calib GUI 265 268 hh_geometry_calib=guidata(h_geometry_calib);
Note: See TracChangeset
for help on using the changeset viewer.