Changeset 60 for trunk/src/mouse_up.m
- Timestamp:
- Mar 23, 2010, 2:52:49 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_up.m
r18 r60 275 275 end 276 276 end 277 if isequal(MouseAction,'ruler') 278 UvData.MouseAction='none'; 279 UvData=rmfield(UvData,'RulerHandle') 280 xy=get(currentaxes,'CurrentPoint'); 281 RulerCoord=[UvData.RulerCoord ;xy(1,1:2)] 282 set(huvmat,'UserData',UvData) 283 RulerCoord=diff(RulerCoord,1) 284 RulerCoord=RulerCoord(1)+i*RulerCoord(2); 285 distance=abs(RulerCoord) 286 azimuth=(180/pi)*angle(RulerCoord) 287 msgbox_uvmat('RULER','',['length: ' num2str(distance,3) ', angle(degrees): ' num2str(azimuth,3)]) 288 end 289 277 290 278 291 %display the data of the current object selected with the mouse right click
Note: See TracChangeset
for help on using the changeset viewer.