Skip to content

Commit

Permalink
More or less final fix for hand draw corrections.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreashorn committed Jan 25, 2019
1 parent 8fb99be commit e1ba7aa
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ea_checkstructures.m
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,12 @@ function approvefiducial_Callback(hObject, eventdata, handles)
%ea_updateviews(options,handles,1:3)
ea_busyaction('off',handles.checkstructures,'normcheckstructures');

funs=getappdata(handles.checkstructures,'bdfuns');
set(handles.tra,'ButtonDownFcn', funs{1});
set(handles.cor,'ButtonDownFcn', funs{2});
set(handles.sag,'ButtonDownFcn', funs{3});



function v=smallestentry(ay)
ay=sort(ay,'ascend');
Expand Down
15 changes: 13 additions & 2 deletions ext_libs/ea_freehanddraw.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,15 @@
% 3/29/05
% Modified:
% 10/05/05: Now allows double-click closing of contour


trafun=get(handles.tra,'ButtonDownFcn');
set(handles.tra,'ButtonDownFcn', '');
corfun=get(handles.cor,'ButtonDownFcn');
set(handles.cor,'ButtonDownFcn', '');
sagfun=get(handles.sag,'ButtonDownFcn');
set(handles.sag,'ButtonDownFcn', '');

set(handles.discardfiducial,'Visible','off');
set(handles.approvefiducial,'Visible','off');
ea_csremovedrawings(handles);
%Get current figure and axis parameters
oldvals = get(gcf);
Expand Down Expand Up @@ -90,6 +97,10 @@
if ~oldhold, hold off; end

ea_setatlascline(handles);
setappdata(handles.checkstructures,'bdfuns',{trafun,corfun,sagfun});
% set(handles.tra,'ButtonDownFcn', trafun);
% set(handles.cor,'ButtonDownFcn', corfun);
% set(handles.sag,'ButtonDownFcn', sagfun);

function wbmfcn(varargin)
lineobj = getappdata(gcf,'lineobj');
Expand Down

0 comments on commit e1ba7aa

Please sign in to comment.