Changeset 657 for trunk/src/mouse_up.m
- Timestamp:
- Jul 3, 2013, 12:07:26 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mouse_up.m
r650 r657 339 339 set(hh,'UserData',[])%remove edit mode 340 340 h_ListCoord=hh_geometry_calib.ListCoord; %handles of the coordinate list 341 Coord=get(h_ListCoord,' String');342 data=read_geometry_calib(Coord);341 Coord=get(h_ListCoord,'Data'); 342 % data=read_geometry_calib(Coord); 343 343 % val=get(h_ListCoord,'Value'); 344 344 % xy=get(hcurrentaxes,'CurrentPoint');%xy(1,1),xy(1,2): current x,y positions in axes coordinates 345 data.Coord(index_point,4)=xy(1,1); 346 data.Coord(index_point,5)=xy(1,2); 347 for ipoint=1:size(data.Coord,1) 348 for jcoord=1:5 349 Coord_cell{ipoint,jcoord}=num2str(data.Coord(ipoint,jcoord),4);%display coordiantes with 4 digits 350 end 351 end 352 Tabchar=cell2tab(Coord_cell,' | '); 353 Tabchar=[Tabchar ;{'......'}]; 354 set(h_ListCoord,'String',Tabchar) 355 set(hh,'XData',data.Coord(:,4)) 356 set(hh,'YData',data.Coord(:,5)) 345 Coord(index_point,4)=xy(1,1); 346 Coord(index_point,5)=xy(1,2); 347 set(h_ListCoord,'Data',Coord) 348 % for ipoint=1:size(Coord,1) 349 % for jcoord=1:5 350 % Coord_cell{ipoint,jcoord}=num2str(data.Coord(ipoint,jcoord),4);%display coordiantes with 4 digits 351 % end 352 % end 353 % Tabchar=cell2tab(Coord_cell,' | '); 354 % Tabchar=[Tabchar ;{'......'}]; 355 % set(h_ListCoord,'String',Tabchar) 356 set(hh,'XData',Coord(:,4)) 357 set(hh,'YData',Coord(:,5)) 357 358 end 358 359 end
Note: See TracChangeset
for help on using the changeset viewer.