Padaco
1.6
Toolbox for interpreting Actigraph accelerometer data collected from children in order to better understand their physical activity and sleep patterns with the intent of reducing obesity and improving their overall health.
|
PAController serves as the UI component of event marking in the Padaco. More...
Public Member Functions | |
function | PAController (in Padaco_fig_h, in) |
function | close (in obj) |
Destructor. More... | |
function | saveParameters (in obj) |
function | initCallbacks (in obj) |
Configure callbacks for the figure, menubar, and widets. Called internally during class construction. More... | |
function | figureCloseCallback (in obj, in hObject, in eventdata, in handles) |
Executes when user attempts to close figure_padaco. More... | |
function | keyPressCallback (in obj, in hObject, in eventdata) |
Executes on key press with focus on figure and no controls selected. More... | |
function | keyReleaseCallback (in obj, in hObject, in eventdata) |
Executes on key press with focus on figure and no controls selected. More... | |
function | windowButtonUpCallback (in obj, in hObject, in eventData) |
Executes when user releases mouse click If the currentObject selected is the secondary axes, then the current window is set to the closest window corresponding to the mouse's x-position. More... | |
function | windowButtonDownCallback (in obj, in hObject, in eventData) |
Executes when user first clicks the mouse. More... | |
function | deactivateLineHandle (in obj) |
function | initMenubarCallbacks (in obj) |
Assign figure's menubar callbacks. Called internally during class construction. More... | |
function | menuHelpFAQCallback (in this, in hObject, in eventdata) |
Callback to display help FAQ from the menubar help->faq menu. More... | |
function | menuFileAboutCallback (in obj, in hObject, in eventdata) |
Assign figure's file->about menubar callback. More... | |
function | menuFileSettingsCallback (in obj, in hObject, in eventdata, in optionalSettingsName) |
Assign figure's menubar callbacks. Called internally during class construction. More... | |
function | menuFileUsageRulesCallback (in obj, in hObject, in eventdata) |
Assign values for usage state classifier rules. Called internally during class construction. More... | |
function | initTimeSeriesWidgets (in obj) |
function | initWidgetCallbacks (in obj) |
Assign callbacks to various user interface widgets. Called internally during class construction. More... | |
function | displayChangeCallback (in obj, in hObject, in eventData) |
Callback for radio button change of the panel_displayButtonGroup handle. The user can select either, 'time series', 'aggregate bins', or 'features'. If 'Features' is selected, then the Feature dropdown menu is enabled, and is disabled otherwise. The view is redrawn. More... | |
function | setDisplayType (in obj, in displayType) |
Sets display type instance variable for the view. More... | |
function | setRadioButton (in obj, in displayType) |
Executes a radio button group callback (i.e. displayChangeCallback). More... | |
function | button_goCallback (in obj, in hObject, in eventdata) |
Callback for pressing the Go push button. Method determines parameters from current view settings (i.e. menu selections for prefilter and aggregate methods). More... | |
function | updateSecondaryAxesLabels (in obj, in axisToUpdate, in labels) |
function | updateSecondaryFeaturesDisplay (in obj, in numFeatures) |
Updates the secondary axes with the current features selected in the GUI. More... | |
function | updateSecondaryFeaturesDisplayCallback (in obj, in hObject, in eventdata) |
Callback from signal selection widget that triggers the update to the secondary axes with the GUI selected feature and signal. More... | |
function | getPrefilterMethod (in obj) |
Retrieves current prefilter method from the GUI. More... | |
function | getExtractorMethod (in obj) |
Retrieves current extractor method (i.e. function name) associated with the GUI displayed description. More... | |
function | setExtractorMethod (in obj, in featureFcn) |
Sets the extractor method (i.e. function name) associated with the GUI displayed description. More... | |
function | getSignalSelection (in obj) |
Retrieves current signal selection from the GUI's signalSelection dropdown menu. More... | |
function | setSignalSelection (in obj, in signalTagLine) |
Sets the Signal Selection's drop down menu's value based on the input parameter. More... | |
function | initSignalSelectionMenu (in obj) |
Initializes the signal selection drop down menu using PAData's default taglines and associated labels. signalSelection dropdown menu. More... | |
function | menu_windowDurSecCallback (in obj, in hObject, in eventdata) |
Callback for menu with window duration selections (values are in seconds) More... | |
function | edit_curWindowCallback (in obj, in hObject, in eventdata) |
Callback for current window's edit textbox. More... | |
function | edit_aggregateCallback (in obj, in hObject, in eventdata) |
Callback for aggregate size edit textbox. More... | |
function | edit_frameSizeMinutesCallback (in obj, in hObject, in eventdata) |
Callback for frame size in minutes edit textbox. More... | |
function | edit_frameSizeHoursCallback (in obj, in hObject, in eventdata) |
Callback for frame size in hours edit textbox. More... | |
function | setAggregateDurationMinutes (in obj, in new_aggregateDuration) |
Set the aggregate duration in minutes. More... | |
function | setFrameDurationMinutes (in obj, in new_frameDurationMinutes) |
Set the frame size minute's units. More... | |
function | setFrameDurationHours (in obj, in new_frameDurationHours) |
Set the frame size hour's units. More... | |
function | setCurWindow (in obj, in new_window) |
Set the current window for the instance variable accelObj (PAData) More... | |
function | getCurWindow (in obj) |
Returns the current window of the instance variable accelObj (PAData) More... | |
function | menuFileOpenCallback (in obj, in hObject, in eventdata) |
Menubar callback for opening a file. More... | |
function | menuFileOpenFitBitCallback (in obj, in hObject, in eventdata) |
Menubar callback for opening a fitbit file. More... | |
function | menuFileOpenResultsPathCallback (in obj, in hObject, in eventdata) |
Menubar callback for opening a results path for use with the results view mode. More... | |
function | menuFileScreenshotCallback (in obj, in hObject, in eventdata, in screenshotDescription) |
Menubar file->screenshot callback. More... | |
function | menuFileQuitCallback (in obj, in hObject, in eventdata, in handles) |
Menubar callback for quitting the program. Executes when user attempts to close padaco fig. More... | |
function | menu_file_exportMenu_callback (in this, in hObject, in eventdata) |
Call back for export menu option under menubar 'file' option. More... | |
function | menu_file_export_dataObj_callback (in obj, in hObject, in ignoredArg) |
Menubar callback for exporting PAController's data object to the workspace. This is useful for debugging and developing methods ad hoc. More... | |
function | menu_file_export_centroidObj_callback (in obj, in hObject, in ignoredArg) |
Menubar callback for exporting PAController's data object to the workspace. This is useful for debugging and developing methods ad hoc. More... | |
function | getViewMode (in obj) |
function | setViewModeCallback (in this, in hObject, in eventData, in viewMode) |
function | setViewMode (in obj, in viewMode) |
Sets padaco's view mode to either time series or results viewing. More... | |
function | menuViewmodeBatchCallback (in obj, in hObject, in eventdata) |
Menubar callback for running the batch tool. More... | |
function | setResultsViewModeCallback (in obj, in hObject, in eventData) |
function | updateBatchToolSettingsCallback (in obj, in batchToolObj, in eventData) |
function | save2image (in obj, in curData, in featureFcn, in img_filename) |
Creates a temporary figure and axes, draws an overlay image on it using curData, saves the image to disk, and then removes the figure from view. More... | |
function | getFrameDurationAsMinutes (in obj) |
Returns the total frame duration (i.e. hours and minutes) in aggregated minutes. More... | |
function | getAggregateDurationAsMinutes (in obj) |
Returns the total frame duration (i.e. hours and minutes) in aggregated minutes. More... | |
function | getStudyDurationSec (in obj) |
Returns the current study's duration as seconds. More... | |
function | getFrameCount (in obj) |
Returns the number of frames the study can be broken into based on the frame duration set in the GUI. More... | |
function | getMeanLumenPatches (in obj, in numSections, in paDataObj) |
Calculates the mean lux value for a given number of sections. More... | |
function | getDaylight (in obj, in numSections, in paDataObj) |
Estimates daylight intensity across the study. More... | |
function | getFeatureVec (in obj, in featureFcn, in fieldName, in numSections, in paDataObj) |
Calculates a desired feature for a particular acceleration object's field value. More... | |
function | getFeatureStartStopDatenums (in obj, in featureFcn, in fieldName, in numSections, in paDataObj) |
function | getUsageState (in obj) |
Calculates a desired feature for a particular acceleration object's field value. More... | |
function | getDisplayType (in obj) |
Returns the display type instance variable. More... | |
function | getSaveParameters (in obj) |
Returns a structure of PAControllers saveable parameters as a struct. More... | |
function | getDisplayableLineHandles (in obj) |
Returns a structure of PAView's primary axes currently displayable line handles. More... | |
Static Public Member Functions | |
static function | contextmenu_line2clipboard_callback (in hObject, in eventdata) |
Copy the selected (feature) linehandle's ydata to the system clipboard. More... | |
static function | cropFigure2Axes (in fig_h, in axes_h) |
static function | getDefaultParameters () |
Returns a structure of PAControllers default, saveable parameters as a struct. More... | |
Public Attributes | |
Constant Property | versionNum = 1.6 |
Property | accelObj |
acceleration activity object - instance of PAData More... | |
Property | SETTINGS |
Instance of PASettings - this is brought in to eliminate the need for several globals. More... | |
Property | VIEW |
Instance of PAView - Padaco's view component. More... | |
Property | MODEL |
Instance of PAModel - Padaco's model component. See accelObj. More... | |
Property | StatTool |
Property | figureH |
Figure handle to the main figure window. More... | |
Property | current_linehandle |
Linehandle in Padaco that is currently selected by the user. More... | |
Property | state_choices_cell |
cell of string choices for the marking state (off, 'marking','general') More... | |
Property | contextmenuhandle |
Property | window_resolution |
struct of different time resolutions, field names correspond to the units of time represented in the field More... | |
Property | num_windows |
Property | display_samples |
Property | shift_display_samples_delta |
Property | startDateTime |
Property | batch |
Struct of batch settings with fields as described by. More... | |
Property | screenshotPathname |
Foldername of most recent screenshot. More... | |
Property | resultsPathname |
Foldername of most recent results output pathname used. More... | |
Property | Padaco_loading_file_flag |
struct to keep track of various Padaco states More... | |
Property | Padaco_mainaxes_ylim |
Property | Padaco_mainaxes_xlim |
PAController serves as the UI component of event marking in the Padaco.
In the model, view, controller paradigm, this is the controller.
function PAController::PAController | ( | in | Padaco_fig_h, |
in | |||
) |
function PAController::button_goCallback | ( | in | obj, |
in | hObject, | ||
in | eventdata | ||
) |
Callback for pressing the Go push button. Method determines parameters from current view settings (i.e. menu selections for prefilter and aggregate methods).
obj | Instance of PAController |
hObject | Handle to the edit text widget |
eventdata | Required by MATLAB, but not used |
function PAController::close | ( | in | obj | ) |
Destructor.
|
static |
Copy the selected (feature) linehandle's ydata to the system clipboard.
obj | Instance of PAController |
hObject | Handle of callback object (unused). |
eventdata | Unused. |
|
static |
function PAController::deactivateLineHandle | ( | in | obj | ) |
function PAController::displayChangeCallback | ( | in | obj, |
in | hObject, | ||
in | eventData | ||
) |
Callback for radio button change of the panel_displayButtonGroup handle. The user can select either, 'time series', 'aggregate bins', or 'features'. If 'Features' is selected, then the Feature dropdown menu is enabled, and is disabled otherwise. The view is redrawn.
obj | Instance of PAController |
hObject | Handle to button group panel. |
eventData | Structure of event data to include:
|
function PAController::edit_aggregateCallback | ( | in | obj, |
in | hObject, | ||
in | eventdata | ||
) |
Callback for aggregate size edit textbox.
obj | Instance of PAController |
hObject | Handle to the edit text widget |
eventdata | Required by MATLAB, but not used |
function PAController::edit_curWindowCallback | ( | in | obj, |
in | hObject, | ||
in | eventdata | ||
) |
Callback for current window's edit textbox.
obj | Instance of PAController |
hObject | Handle to the edit text widget |
eventdata | Required by MATLAB, but not used |
function PAController::edit_frameSizeHoursCallback | ( | in | obj, |
in | hObject, | ||
in | eventdata | ||
) |
Callback for frame size in hours edit textbox.
obj | Instance of PAController |
hObject | Handle to the edit text widget |
eventdata | Required by MATLAB, but not used |
function PAController::edit_frameSizeMinutesCallback | ( | in | obj, |
in | hObject, | ||
in | eventdata | ||
) |
Callback for frame size in minutes edit textbox.
obj | Instance of PAController |
hObject | Handle to the edit text widget |
eventdata | Required by MATLAB, but not used |
function PAController::figureCloseCallback | ( | in | obj, |
in | hObject, | ||
in | eventdata, | ||
in | handles | ||
) |
Executes when user attempts to close figure_padaco.
obj | Instance of PAController |
hObject | handle to menu_file_quit (see GCBO) |
eventdata | reserved - to be defined in a future version of MATLAB |
handles | structure with handles and user data (see GUIDATA) |
function PAController::getAggregateDurationAsMinutes | ( | in | obj | ) |
Returns the total frame duration (i.e. hours and minutes) in aggregated minutes.
obj | Instance of PAData |
curFrameDurationMin | The current frame duration as total minutes. |
function PAController::getCurWindow | ( | in | obj | ) |
Returns the current window of the instance variable accelObj (PAData)
obj | Instance of PAController |
window | The current window, or null if it has not been initialized. |
function PAController::getDaylight | ( | in | obj, |
in | numSections, | ||
in | paDataObj | ||
) |
Estimates daylight intensity across the study.
obj | Instance of PAController |
numSections | (optional) Number of chunks to estimate daylight at across the study. Default is 100. |
paDataObj | Optional instance of PAData. Date time will be calculated from this when included, otherwise date time from the instance variable accelObj is used. |
daylightVector | Vector of estimated daylight from the time of day at startStopDatenums. |
startStopDatenums | Nx2 matrix of datenum values whose rows correspond to the start/stop range that the meanLumens value (at the same row position) was derived from. |
|
static |
Returns a structure of PAControllers default, saveable parameters as a struct.
pStruct | A structure of parameters which include the following fields
|
function PAController::getDisplayableLineHandles | ( | in | obj | ) |
function PAController::getDisplayType | ( | in | obj | ) |
Returns the display type instance variable.
obj | Instance of PAView. |
structName | Name of the field that matches the description of the current display type used.
|
function PAController::getExtractorMethod | ( | in | obj | ) |
Retrieves current extractor method (i.e. function name) associated with the GUI displayed description.
obj | Instance of PAController |
extractorMethod | String value of the function call represented by the current feature extraction method displayed in the VIEW's displayFeature drop down menu. |
function PAController::getFeatureStartStopDatenums | ( | in | obj, |
in | featureFcn, | ||
in | fieldName, | ||
in | numSections, | ||
in | paDataObj | ||
) |
function PAController::getFeatureVec | ( | in | obj, |
in | featureFcn, | ||
in | fieldName, | ||
in | numSections, | ||
in | paDataObj | ||
) |
Calculates a desired feature for a particular acceleration object's field value.
obj | Instance of PAController |
featureFcn | Function name or handle to use to obtain features. |
fieldName | String name of the accelObj field to obtain data from. |
numSections | (optional) Number of patches to break the accelObj time series data into and calculate the features from. |
paDataObj | Optional instance of PAData. Date time will be calculated from this when included, otherwise date time from the instance variable accelObj is used. |
featureVec | Vector of specified feature values calculated from the specified (fieldName) field of the accelObj PAData object instance variable. Vector values are in consecutive order of the section they are calculated from. |
startStopDatenums | Nx2 matrix of datenum values whose rows correspond to the start/stop range that the feature vector value (at the same row position) was derived from. |
function PAController::getFrameCount | ( | in | obj | ) |
Returns the number of frames the study can be broken into based on the frame duration set in the GUI.
obj | Instance of PAController. |
function PAController::getFrameDurationAsMinutes | ( | in | obj | ) |
Returns the total frame duration (i.e. hours and minutes) in aggregated minutes.
obj | Instance of PAData |
curFrameDurationMin | The current frame duration as total minutes. |
function PAController::getMeanLumenPatches | ( | in | obj, |
in | numSections, | ||
in | paDataObj | ||
) |
Calculates the mean lux value for a given number of sections.
obj | Instance of PAController |
numSections | (optional) Number of patches to break the accelObj lux time series data into and calculate the mean lumens over. |
paDataObj | Optional instance of PAData. Mean lumens will be calculated from this when included, otherwise the instance variable accelObj is used. |
meanLumens | Vector of mean lumen values calculated from the lux field of the accelObj PAData object instance variable. Vector values are in consecutive order of the section they are calculated from. |
startStopDatenums | Nx2 matrix of datenum values whose rows correspond to the start/stop range that the meanLumens value (at the same row position) was derived from. |
function PAController::getPrefilterMethod | ( | in | obj | ) |
Retrieves current prefilter method from the GUI.
obj | Instance of PAController |
prefilterMethod | value of the current prefilter method. |
function PAController::getSaveParameters | ( | in | obj | ) |
Returns a structure of PAControllers saveable parameters as a struct.
obj | Instance of PAView. |
pStruct | A structure of save parameters which include the following fields
|
function PAController::getSignalSelection | ( | in | obj | ) |
Retrieves current signal selection from the GUI's signalSelection dropdown menu.
obj | Instance of PAController |
signalSelection | The tag line of the selected signal. |
function PAController::getStudyDurationSec | ( | in | obj | ) |
Returns the current study's duration as seconds.
obj | Instance of PAData |
curStudyDurationSec | The duration of the current study in seconds. |
function PAController::getUsageState | ( | in | obj | ) |
Calculates a desired feature for a particular acceleration object's field value.
obj | Instance of PAController |
featureFcn | Function name or handle to use to obtain features. |
fieldName | String name of the accelObj field to obtain data from. |
numSections | (optional) Number of patches to break the accelObj time series data into and calculate the features from. |
paDataObj | Optional instance of PAData. Date time will be calculated from this when included, otherwise date time from the instance variable accelObj is used. |
featureVec | Vector of specified feature values calculated from the specified (fieldName) field of the accelObj PAData object instance variable. Vector values are in consecutive order of the section they are calculated from. |
startStopDatenums | Nx2 matrix of datenum values whose rows correspond to the start/stop range that the feature vector value (at the same row position) was derived from. |
function PAController::getViewMode | ( | in | obj | ) |
function PAController::initCallbacks | ( | in | obj | ) |
Configure callbacks for the figure, menubar, and widets. Called internally during class construction.
obj | Instance of PAController |
function PAController::initMenubarCallbacks | ( | in | obj | ) |
Assign figure's menubar callbacks. Called internally during class construction.
obj | Instance of PAController |
function PAController::initSignalSelectionMenu | ( | in | obj | ) |
Initializes the signal selection drop down menu using PAData's default taglines and associated labels. signalSelection dropdown menu.
obj | Instance of PAController |
function PAController::initTimeSeriesWidgets | ( | in | obj | ) |
function PAController::initWidgetCallbacks | ( | in | obj | ) |
Assign callbacks to various user interface widgets. Called internally during class construction.
obj | Instance of PAController |
function PAController::keyPressCallback | ( | in | obj, |
in | hObject, | ||
in | eventdata | ||
) |
Executes on key press with focus on figure and no controls selected.
obj | Instance of PAController |
hObject | handle to figure (gcf) |
eventdata | Structure of key press information. |
function PAController::keyReleaseCallback | ( | in | obj, |
in | hObject, | ||
in | eventdata | ||
) |
Executes on key press with focus on figure and no controls selected.
obj | Instance of PAController |
hObject | handle to figure (gcf), unused |
eventdata | Structure of key press information. |
function PAController::menu_file_export_centroidObj_callback | ( | in | obj, |
in | hObject, | ||
in | ignoredArg | ||
) |
Menubar callback for exporting PAController's data object to the workspace. This is useful for debugging and developing methods ad hoc.
obj | Instance of PAController |
hObject | handle to menu_viewmode_batch (see GCBO) |
eventdata | reserved - to be defined in a future version of MATLAB |
handles | structure with handles and user data (see GUIDATA) |
function PAController::menu_file_export_dataObj_callback | ( | in | obj, |
in | hObject, | ||
in | ignoredArg | ||
) |
Menubar callback for exporting PAController's data object to the workspace. This is useful for debugging and developing methods ad hoc.
obj | Instance of PAController |
hObject | handle to menu_viewmode_batch (see GCBO) |
eventdata | reserved - to be defined in a future version of MATLAB |
handles | structure with handles and user data (see GUIDATA) |
function PAController::menu_file_exportMenu_callback | ( | in | this, |
in | hObject, | ||
in | eventdata | ||
) |
Call back for export menu option under menubar 'file' option.
function PAController::menu_windowDurSecCallback | ( | in | obj, |
in | hObject, | ||
in | eventdata | ||
) |
Callback for menu with window duration selections (values are in seconds)
obj | Instance of PAController |
hObject | Handle to the edit text widget |
eventdata | Required by MATLAB, but not used |
function PAController::menuFileAboutCallback | ( | in | obj, |
in | hObject, | ||
in | eventdata | ||
) |
Assign figure's file->about menubar callback.
obj | Instance of PAController |
hObject | |
eventdata |
function PAController::menuFileOpenCallback | ( | in | obj, |
in | hObject, | ||
in | eventdata | ||
) |
Menubar callback for opening a file.
obj | Instance of PAController |
hObject | handle to menu_file_open (see GCBO) |
eventdata | Required by MATLAB, but not used. |
function PAController::menuFileOpenFitBitCallback | ( | in | obj, |
in | hObject, | ||
in | eventdata | ||
) |
Menubar callback for opening a fitbit file.
obj | Instance of PAController |
hObject | handle to menu_file_open (see GCBO) |
eventdata | Required by MATLAB, but not used. |
function PAController::menuFileOpenResultsPathCallback | ( | in | obj, |
in | hObject, | ||
in | eventdata | ||
) |
Menubar callback for opening a results path for use with the results view mode.
obj | Instance of PAController |
hObject | handle to menu_file_open (see GCBO) |
eventdata | Required by MATLAB, but not used. |
function PAController::menuFileQuitCallback | ( | in | obj, |
in | hObject, | ||
in | eventdata, | ||
in | handles | ||
) |
Menubar callback for quitting the program. Executes when user attempts to close padaco fig.
obj | Instance of PAController |
hObject | handle to menu_file_quit (see GCBO) |
eventdata | reserved - to be defined in a future version of MATLAB |
function PAController::menuFileScreenshotCallback | ( | in | obj, |
in | hObject, | ||
in | eventdata, | ||
in | screenshotDescription | ||
) |
Menubar file->screenshot callback.
obj | Instance of PAController |
hObject | handle to menu_file_open (see GCBO) |
eventdata | Required by MATLAB, but not used. |
screenshotDescription | String label for which part of the GUI is to be captured. Valid labels include:
|
function PAController::menuFileSettingsCallback | ( | in | obj, |
in | hObject, | ||
in | eventdata, | ||
in | optionalSettingsName | ||
) |
Assign figure's menubar callbacks. Called internally during class construction.
obj | Instance of PAController |
hObject | |
eventdata | |
optionalSettingsName | String specifying the settings to update (optional) |
function PAController::menuFileUsageRulesCallback | ( | in | obj, |
in | hObject, | ||
in | eventdata | ||
) |
Assign values for usage state classifier rules. Called internally during class construction.
obj | Instance of PAController |
hObject | |
eventdata | |
optionalSettingsName | String specifying the settings to update (optional) |
function PAController::menuHelpFAQCallback | ( | in | this, |
in | hObject, | ||
in | eventdata | ||
) |
Callback to display help FAQ from the menubar help->faq menu.
obj | Instance of PAController |
hObject | |
eventdata |
function PAController::menuViewmodeBatchCallback | ( | in | obj, |
in | hObject, | ||
in | eventdata | ||
) |
Menubar callback for running the batch tool.
obj | Instance of PAController |
hObject | handle to menu_viewmode_batch (see GCBO) |
eventdata | reserved - to be defined in a future version of MATLAB |
handles | structure with handles and user data (see GUIDATA) |
function PAController::save2image | ( | in | obj, |
in | curData, | ||
in | featureFcn, | ||
in | img_filename | ||
) |
Creates a temporary figure and axes, draws an overlay image on it using curData, saves the image to disk, and then removes the figure from view.
obj | Instance of PAController |
curData | Instance of PAData |
featureFcn | Extractor method for obtaining features from curData. |
img_filename | Filename to save image to. |
function PAController::saveParameters | ( | in | obj | ) |
function PAController::setAggregateDurationMinutes | ( | in | obj, |
in | new_aggregateDuration | ||
) |
Set the aggregate duration in minutes.
obj | Instance of PAController |
new_aggregateDuration | Aggregate duration in minutes. |
success | True if the aggregate duration is changed, and false otherwise. |
function PAController::setCurWindow | ( | in | obj, |
in | new_window | ||
) |
Set the current window for the instance variable accelObj (PAData)
obj | Instance of PAController |
new_window | Value of the new window to set. |
success | True if the window is set successfully, and false otherwise. |
function PAController::setDisplayType | ( | in | obj, |
in | displayType | ||
) |
Sets display type instance variable for the view.
obj | Instance of PAView. |
displayType | A string representing the display type structure. Can be
|
function PAController::setExtractorMethod | ( | in | obj, |
in | featureFcn | ||
) |
Sets the extractor method (i.e. function name) associated with the GUI displayed description.
obj | Instance of PAController |
featureFcn | String value of the function call represented by the current feature extraction method displayed in the VIEW's displayFeature drop down menu. |
function PAController::setFrameDurationHours | ( | in | obj, |
in | new_frameDurationHours | ||
) |
Set the frame size hour's units.
obj | Instance of PAController |
new_frameDurationHours | Hours for frame duration. |
success | True if the frame duration is changed, and false otherwise. |
function PAController::setFrameDurationMinutes | ( | in | obj, |
in | new_frameDurationMinutes | ||
) |
Set the frame size minute's units.
obj | Instance of PAController |
new_frameDurationMinutes | Frame duration minutes measure. |
success | True if the frame duration is changed, and false otherwise. |
function PAController::setRadioButton | ( | in | obj, |
in | displayType | ||
) |
Executes a radio button group callback (i.e. displayChangeCallback).
obj | Instance of PAController |
displayType | String value of the radio button to set. Can be
|
function PAController::setResultsViewModeCallback | ( | in | obj, |
in | hObject, | ||
in | eventData | ||
) |
function PAController::setSignalSelection | ( | in | obj, |
in | signalTagLine | ||
) |
Sets the Signal Selection's drop down menu's value based on the input parameter.
obj | Instance of PAController. |
signalTagLine | String representing the tag line associated with each signal choice selection and listed as dropdown menus userdata. |
function PAController::setViewMode | ( | in | obj, |
in | viewMode | ||
) |
Sets padaco's view mode to either time series or results viewing.
obj | Instance of PAController |
viewMode | A string with one of two values
|
function PAController::setViewModeCallback | ( | in | this, |
in | hObject, | ||
in | eventData, | ||
in | viewMode | ||
) |
function PAController::updateBatchToolSettingsCallback | ( | in | obj, |
in | batchToolObj, | ||
in | eventData | ||
) |
function PAController::updateSecondaryAxesLabels | ( | in | obj, |
in | axisToUpdate, | ||
in | labels | ||
) |
obj | Instance of PAController |
axisToUpdate | Axis to update 'x' or 'y' on the secondary axes. |
labels | Cell of labels to place on the secondary axes. |
function PAController::updateSecondaryFeaturesDisplay | ( | in | obj, |
in | numFeatures | ||
) |
Updates the secondary axes with the current features selected in the GUI.
obj | Instance of PAController |
numFeatures | Optional number of features to extract (i.e. the number of chunks that the the study data will be broken into and the current feature category applied to. Default is the current frame count. |
heightOffset | y-axis value of the top of the features displayed. This is helpful in determining where to stack additional items on top of in the secondary axes. |
function PAController::updateSecondaryFeaturesDisplayCallback | ( | in | obj, |
in | hObject, | ||
in | eventdata | ||
) |
Callback from signal selection widget that triggers the update to the secondary axes with the GUI selected feature and signal.
obj | Instance of PAController |
hObject | handle to the callback object. |
eventdata | Not used. Required by MATLAB. |
function PAController::windowButtonDownCallback | ( | in | obj, |
in | hObject, | ||
in | eventData | ||
) |
Executes when user first clicks the mouse.
obj | Instance of PAController |
hObject | handle to figure (gcf), unused |
eventData | Structure of mouse press information; unused |
Note | - this turns off all other mouse movement and mouse wheel callback methods. |
function PAController::windowButtonUpCallback | ( | in | obj, |
in | hObject, | ||
in | eventData | ||
) |
Executes when user releases mouse click If the currentObject selected is the secondary axes, then the current window is set to the closest window corresponding to the mouse's x-position.
obj | Instance of PAController |
hObject | handle to figure (gcf), unused |
eventData | Structure of mouse press information; unused |
Property PAController::accelObj |
acceleration activity object - instance of PAData
Property PAController::batch |
Struct of batch settings with fields as described by.
Property PAController::contextmenuhandle |
string of the current selected choice handle to the figure an instance of this class is associated with struct of handles for the context menus
Property PAController::current_linehandle |
Linehandle in Padaco that is currently selected by the user.
Property PAController::display_samples |
Property PAController::figureH |
Figure handle to the main figure window.
Property PAController::MODEL |
Instance of PAModel - Padaco's model component. See accelObj.
Property PAController::num_windows |
Property PAController::Padaco_loading_file_flag |
struct to keep track of various Padaco states
Property PAController::Padaco_mainaxes_xlim |
Property PAController::Padaco_mainaxes_ylim |
Property PAController::resultsPathname |
Foldername of most recent results output pathname used.
Property PAController::screenshotPathname |
Foldername of most recent screenshot.
Property PAController::SETTINGS |
Instance of PASettings - this is brought in to eliminate the need for several globals.
Property PAController::shift_display_samples_delta |
Property PAController::startDateTime |
Property PAController::state_choices_cell |
cell of string choices for the marking state (off, 'marking','general')
Property PAController::StatTool |
Instance of PAStatTool - results controller when in results view mode.
Constant Property PAController::versionNum = 1.6 |
Property PAController::VIEW |
Instance of PAView - Padaco's view component.
Property PAController::window_resolution |
struct of different time resolutions, field names correspond to the units of time represented in the field