Changeset 851 for trunk/src/geometry_calib.m
- Timestamp:
- Jan 19, 2015, 9:29:28 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/geometry_calib.m
r847 r851 1273 1273 iline=str2num(get(handles.CoordLine,'String')); 1274 1274 xx=double(get(handles.geometry_calib,'CurrentCharacter'));%get the keyboard character 1275 if ismember(xx,[28 29 30 31])% directional arrow 1275 if ismember(xx,[28 29 30 31])% directional arrow 1276 1276 Coord=get(handles.ListCoord,'Data'); 1277 1277 switch xx … … 1287 1287 else 1288 1288 set(handles.APPLY,'BackgroundColor',[1 0 1])% paint APPLY in magenta to indicate that the table content has be modified 1289 end 1290 1289 if ismember(xx,[127 31])% delete, or downward 1290 Coord=get(handles.ListCoord,'Data'); 1291 iline=str2double(get(handles.CoordLine,'String')); 1292 if isequal(xx, 31) 1293 if isequal(iline,size(Coord,1))% arrow downward 1294 Coord=[Coord;zeros(1,size(Coord,2))]; 1295 end 1296 else 1297 Coord(iline,:)=[];% suppress the current line 1298 end 1299 set(handles.ListCoord,'Data',Coord); 1300 end 1301 end 1291 1302 1292 1303 %------------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.