Changeset 657 for trunk/src/mouse_up.m


Ignore:
Timestamp:
Jul 3, 2013, 12:07:26 PM (11 years ago)
Author:
sommeria
Message:

a few bugs corrected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mouse_up.m

    r650 r657  
    339339            set(hh,'UserData',[])%remove edit mode
    340340            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);
    343343            %         val=get(h_ListCoord,'Value');
    344344          %  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))
    357358        end
    358359    end
Note: See TracChangeset for help on using the changeset viewer.