Changeset 67 for trunk/src/mouse_up.m
- Timestamp:
- Mar 25, 2010, 6:48:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_up.m
r61 r67 37 37 zoomstate=get(hhuvmat.zoom,'Value'); 38 38 end 39 if isequal(MouseAction,'calib') && ~zoomstate40 return41 end39 % if isequal(MouseAction,'calib') && ~zoomstate 40 % return 41 % end 42 42 currentfig=gcbo; 43 43 AxeData=get(gca,'UserData'); … … 138 138 set(hhuvmat.edit,'Value',1);% 139 139 set(hhuvmat.edit,'Enable','on');% 140 set(hhuvmat.MenuEditObject,'Enable','on');% 140 141 set(hhuvmat.MenuEdit,'Enable','on');% 141 set(hhuvmat.MenuEdit,'Enable','on');% 142 set(hhuvmat.MenuObject,'Enable','on');% 142 % set(hhuvmat.MenuObject,'Enable','on');% 143 143 UvData.MouseAction='edit_object'; % set the edit button to 'on' 144 144 end … … 261 261 end 262 262 end 263 if isequal(MouseAction,'ruler') 263 264 % editing calibration point 265 if strcmp(MouseAction,'calib') 266 xy=get(currentaxes,'CurrentPoint');%xy(1,1),xy(1,2): current x,y positions in axes coordinates 267 hh=findobj('Tag','calib_points')%look for handle of calibration points 268 if ~isempty(hh) 269 set(hh,'UserData',[])%remove edit mode 270 end 271 strline=[ ' | ' ' | ' ' | ' num2str(xy(1,1),4) ' | ' num2str(xy(1,2),4)]; 272 h_geometry_calib=findobj(allchild(0),'Name','geometry_calib'); %find the geomterty_calib GUI 273 hh_geometry_calib=guidata(h_geometry_calib); 274 h_ListCoord=hh_geometry_calib.ListCoord; %findobj(h_geometry_calib,'Tag','ListCoord'); 275 Coord=get(h_ListCoord,'String'); 276 val=get(h_ListCoord,'Value'); 277 % if length(Coord)>=val 278 % Coord(val+1:length(Coord)+1)=Coord(val:length(Coord));% push the list forward beyond the current point 279 % end 280 Coord{val}=strline; 281 set(h_ListCoord,'String',Coord) 282 %set(h_ListCoord,'Value',val+1) 283 %geometry_calib('ListCoord_Callback',hObject,eventdata,hh_geometry_calib) 284 %data=read_geometry_calib(Coord);%transform char cell to numbers 285 %XCoord=data.Coord(:,4); 286 %YCoord=data.Coord(:,5) 287 end 288 289 % finalising ruler 290 if strcmp(MouseAction,'ruler') 264 291 UvData.MouseAction='none'; 265 292 UvData=rmfield(UvData,'RulerHandle');
Note: See TracChangeset
for help on using the changeset viewer.