Changeset 680 for trunk/src/geometry_calib.m
- Timestamp:
- Aug 29, 2013, 12:32:50 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/geometry_calib.m
r674 r680 1320 1320 %------------------------------------------------------------------------ 1321 1321 function ListCoord_CellSelectionCallback(hObject, eventdata, handles) 1322 1323 1322 if ~isempty(eventdata.Indices) 1324 1323 iline=eventdata.Indices(1);% selected line number … … 1350 1349 function key_press_fcn(hObject,eventdata,handles) 1351 1350 1352 xx=double(get(handles.geometry_calib,'CurrentCharacter')); 1351 xx=double(get(handles.geometry_calib,'CurrentCharacter'));%get the keyboard character 1353 1352 %if ismember(xx,[8 127])%backspace or delete 1354 if ismember(xx,[30 31 8 127])% arrow upward, downward, backspaceor delete1353 if ismember(xx,[30 31 127])% arrow upward, downward, or delete 1355 1354 Coord=get(handles.ListCoord,'Data'); 1356 ind=find(Coord(:,6)); 1355 ind=find(Coord(:,6));%find the marker '+' for line selection 1357 1356 Coord(:,6)=zeros(size(Coord,1),1);% desactivate the current line mark 1358 1357 switch xx … … 1361 1360 case 31% arrow downward 1362 1361 Coord(ind+1,6)=1; 1363 case {8 127}% remove line1362 case 127% remove line 1364 1363 Coord(ind,:)=[]; 1364 PLOT_Callback(hObject,eventdata,handles) 1365 1365 end 1366 1366 set(handles.ListCoord,'Data',Coord); 1367 PLOT_Callback(hObject,eventdata,handles)1368 1367 end 1369 1368
Note: See TracChangeset
for help on using the changeset viewer.