|
a |
|
b/pushbutton4_Callback.m |
|
|
1 |
% This is the call back for the button "Remove BOX" |
|
|
2 |
% --- Executes on button press in pushbutton4. |
|
|
3 |
function pushbutton4_Callback(hObject, eventdata, handles) |
|
|
4 |
% hObject handle to pushbutton4 (see GCBO) |
|
|
5 |
% eventdata reserved - to be defined in a future version of MATLAB |
|
|
6 |
% handles structure with handles and user data (see GUIDATA) |
|
|
7 |
|
|
|
8 |
% Update the Threshold based on the new end values of the slider, stops any |
|
|
9 |
% running timers, update box locations. clears the diameter plots |
|
|
10 |
script_update_Threshold_and_display; |
|
|
11 |
|
|
|
12 |
% handles.Bmode is false if the input data is Pulsed Doppler data |
|
|
13 |
if( handles.Bmode ~= true ), |
|
|
14 |
handles.Message_Bar.String = "Button Deactivated! Not required for pulsed Doppler"; |
|
|
15 |
return; |
|
|
16 |
end |
|
|
17 |
|
|
|
18 |
if(handles.number_Box >= 1) |
|
|
19 |
|
|
|
20 |
%This script will remove a pair of boxes |
|
|
21 |
script_to_remove_box; |
|
|
22 |
|
|
|
23 |
else |
|
|
24 |
Update_remove_Box_Title; |
|
|
25 |
end |
|
|
26 |
|
|
|
27 |
% Update handles structure |
|
|
28 |
guidata(hObject, handles); |
|
|
29 |
|
|
|
30 |
end |