https://github.com/HanLab-BME-MTU/focalAdhesionPackage.git
Tip revision: 6aeb3593a5fd3ace9b0663d1bf0334decfb99835 authored by Sangyoon Han on 22 March 2021, 06:43:02 UTC
Create LICENSE
Create LICENSE
Tip revision: 6aeb359
tractionForceReadingProcessGUI.m
function varargout = tractionForceReadingProcessGUI(varargin)
% tractionForceReadingProcessGUI M-file for tractionForceReadingProcessGUI.fig
% tractionForceReadingProcessGUI, by itself, creates a new tractionForceReadingProcessGUI or raises the existing
% singleton*.
%
% H = tractionForceReadingProcessGUI returns the handle to a new tractionForceReadingProcessGUI or the handle to
% the existing singleton*.
%
% tractionForceReadingProcessGUI('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in tractionForceReadingProcessGUI.M with the given input arguments.
%
% tractionForceReadingProcessGUI('Property','Value',...) creates a new tractionForceReadingProcessGUI or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before tractionForceReadingProcessGUI_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to tractionForceReadingProcessGUI_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES
% Edit the above text to modify the response to help tractionForceReadingProcessGUI
% Last Modified by GUIDE v2.5 28-Oct-2017 20:23:39
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @tractionForceReadingProcessGUI_OpeningFcn, ...
'gui_OutputFcn', @tractionForceReadingProcessGUI_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before tractionForceReadingProcessGUI is made visible.
function tractionForceReadingProcessGUI_OpeningFcn(hObject,eventdata,handles,varargin)
processGUI_OpeningFcn(hObject, eventdata, handles, varargin{:});
% Set process parameters
userData = get(handles.figure1, 'UserData');
funParams = userData.crtProc.funParams_;
set(handles.checkbox_saveTractionField,'Value',funParams.saveTractionField);
% Choose default command line output for tractionForceReadingProcessGUI
handles.output = hObject;
% Update user data and GUI data
set(hObject, 'UserData', userData);
guidata(hObject, handles);
% --- Outputs from this function are returned to the command line.
function varargout = tractionForceReadingProcessGUI_OutputFcn(~, ~, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure
varargout{1} = handles.output;
% --- Executes on button press in pushbutton_cancel.
function pushbutton_cancel_Callback(~, ~, handles)
% Delete figure
delete(handles.figure1);
% --- Executes during object deletion, before destroying properties.
function figure1_DeleteFcn(hObject, ~, handles)
% Notify the package GUI that the setting panel is closed
userData = get(handles.figure1, 'UserData');
if isfield(userData, 'helpFig') && ishandle(userData.helpFig)
delete(userData.helpFig)
end
set(handles.figure1, 'UserData', userData);
guidata(hObject,handles);
% --- Executes on key press with focus on pushbutton_done and none of its controls.
function pushbutton_done_KeyPressFcn(~, eventdata, handles)
if strcmp(eventdata.Key, 'return')
pushbutton_done_Callback(handles.pushbutton_done, [], handles);
end
% --- Executes on key press with focus on figure1 and none of its controls.
function figure1_KeyPressFcn(~, eventdata, handles)
if strcmp(eventdata.Key, 'return')
pushbutton_done_Callback(handles.pushbutton_done, [], handles);
end
% --- Executes on button press in pushbutton_done.
function pushbutton_done_Callback(hObject, eventdata, handles)
% Check user input
userData = get(handles.figure1, 'UserData');
funParams.saveTractionField=get(handles.checkbox_saveTractionField,'Value');
% Process Sanity check ( only check underlying data )
try
userData.crtProc.sanityCheck;
catch ME
errordlg([ME.message 'Please double check your data.'],...
'Setting Error','modal');
return;
end
% Set parameters
processGUI_ApplyFcn(hObject, eventdata, handles,funParams);
% --- Executes on button press in checkbox_saveTractionField.
function checkbox_saveTractionField_Callback(hObject, eventdata, handles)
%
%
%
% --- Executes on button press in checkbox_fill.
function checkbox_fill_Callback(hObject, eventdata, handles)
% hObject handle to checkbox_fill (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hint: get(hObject,'Value') returns toggle state of checkbox_fill