Continuous HPI head-position-indicator configuration panel. More...
#include <hpisettingsview.h>
Signals | |
| void | coilFrequenciesChanged (const QVector< int > &vCoilFreqs) |
| void | digitizersChanged (const QList< FIFFLIB::FiffDigPoint > &lDigitzers, const QString &sFilePath) |
| void | doFreqOrder () |
| void | doSingleHpiFit () |
| void | sspStatusChanged (bool bChecked) |
| void | compStatusChanged (bool bChecked) |
| void | contHpiStatusChanged (bool bChecked) |
| void | fittingWindowSizeChanged (int iFitsPerSecond) |
| void | allowedMeanErrorDistChanged (double dAllowedMeanErrorDist) |
| void | allowedMovementChanged (double dAllowedMovement) |
| void | allowedRotationChanged (double dAllowedRotation) |
| Signals inherited from DISPLIB::AbstractView | |
| void | guiStyleChanged (DISPLIB::AbstractView::StyleMode style) |
Public Member Functions | |
| HpiSettingsView (const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget) | |
| ~HpiSettingsView () | |
| void | setErrorLabels (const QVector< double > &vError, const double dMeanErrorDist) |
| void | setGoFLabels (const Eigen::VectorXd &vGoF, const double dMeanGof) |
| void | setMovementResults (double dMovement, double dRotation) |
| bool | getSspStatusChanged () |
| bool | getCompStatusChanged () |
| double | getAllowedMeanErrorDistChanged () |
| double | getAllowedMovementChanged () |
| double | getAllowedRotationChanged () |
| bool | continuousHPIChecked () |
| int | getFittingWindowSize () |
| void | newDigitizerList (QList< FIFFLIB::FiffDigPoint > pointList) |
| void | loadCoilPresets (const QString &sFilePath) |
| void | saveSettings () |
| void | loadSettings () |
| void | clearView () |
| Public Member Functions inherited from DISPLIB::AbstractView | |
| AbstractView (QWidget *parent=0, Qt::WindowFlags f=Qt::Widget) | |
| virtual void | setGuiMode (GuiMode mode) |
| virtual void | setProcessingMode (ProcessingMode mode) |
Protected Member Functions | |
| void | updateGuiMode (GuiMode mode) |
| void | updateProcessingMode (ProcessingMode mode) |
| void | onLoadDigitizers () |
| void | onFrequencyCellChanged (int row, int col) |
| void | onAddCoil () |
| void | onRemoveCoil () |
| QList< FIFFLIB::FiffDigPoint > | readDigitizersFromFile (const QString &fileName) |
| void | setupCoilPresets (int iNumCoils) |
| void | populatePresetGUI (const QJsonArray &presetData) |
| void | populateCoilGUI () |
| void | selectCoilPreset (int iCoilPresetIndex) |
| void | addCoilFreqToGUI (int iCoilFreq) |
| void | addCoilErrorToGUI () |
| addCoilErrorToGUI | |
| void | clearCoilGUI () |
| void | updateDigitizerInfoGUI (const FIFFLIB::FiffDigPointSet &digSet) |
Protected Attributes | |
| Ui::HpiSettingsViewWidget * | m_pUi |
| QVector< int > | m_vCoilFreqs |
| QString | m_sSettingsPath |
| QJsonDocument | m_CoilPresets |
| Protected Attributes inherited from DISPLIB::AbstractView | |
| bool | m_bResearchModeIsActive |
| bool | m_bOfflineModeIsActive |
| QString | m_sSettingsPath |
Additional Inherited Members | |
| Public Types inherited from DISPLIB::AbstractView | |
| enum | StyleMode { Default , Dark } |
| enum | GuiMode { Clinical , Research } |
| enum | ProcessingMode { RealTime , Offline } |
| typedef QSharedPointer< AbstractView > | SPtr |
| typedef QSharedPointer< const AbstractView > | ConstSPtr |
Continuous HPI head-position-indicator configuration panel.
Coil-frequency table, GoF threshold spinbox, continuous HPI toggle and single-shot Fit trigger; emits coil-list and head-movement vectors back to the live pipeline.
Definition at line 74 of file hpisettingsview.h.

| HpiSettingsView::HpiSettingsView | ( | const QString & | sSettingsPath = "", |
| QWidget * | parent = 0, | ||
| Qt::WindowFlags | f = Qt::Widget ) |
Constructs a HpiSettingsView object.
| [in] | pFiffInfo | The FiffInfo. |
| [in] | parent | The parent widget. |
Definition at line 55 of file hpisettingsview.cpp.
| HpiSettingsView::~HpiSettingsView | ( | ) |
Definition at line 101 of file hpisettingsview.cpp.
|
protected |
addCoilErrorToGUI
Definition at line 524 of file hpisettingsview.cpp.
|
protected |
Adds coil frequency to gui table based on input argument.
| [in] | iCoilFreq |
Definition at line 506 of file hpisettingsview.cpp.
|
signal |
Emit this signal whenever the allowed error changed.
| [in] | dAllowedMeanErrorDist | Allowed mean error in mm. |
|
signal |
Emit this signal whenever the allowed head movement threshold changed.
| [in] | dAllowedMeanErrorDist | Allowed movement threshold. |
|
signal |
Emit this signal whenever the allowed head rotation threshold changed.
| [in] | dAllowedMeanErrorDist | Allowed rotation in degree. |
|
protected |
Clears GUI display tables for coil error and coil freqs and empties all rows
Definition at line 551 of file hpisettingsview.cpp.
|
virtual |
Clears the view
Implements DISPLIB::AbstractView.
Definition at line 568 of file hpisettingsview.cpp.
|
signal |
Emit this signal whenever the coil frequencies changed.
| [in] | vCoilFreqs | The new coil frequencies. |
|
signal |
Emit this signal whenever compensator checkbox changed.
| [in] | bChecked | Whether the compensator check box is checked. |
|
signal |
Emit this signal whenever continous HPI checkbox changed.
| [in] | bChecked | Whether the continous HPI check box is checked. |
| bool HpiSettingsView::continuousHPIChecked | ( | ) |
Returns whether continuous fitting is checked.
Definition at line 208 of file hpisettingsview.cpp.
|
signal |
Emit this signal whenever new digitzers were loaded.
| [in] | lDigitzers | The new digitzers. |
| [in] | sFilePath | The file path to the new digitzers. |
|
signal |
Emit this signal whenever the frequency ordering is supposed to be triggered.
|
signal |
Emit this signal whenever a single HPI fit is supposed to be triggered.
|
signal |
Emit this signal when 'fits per second' control gets updated.
| [in] | iFitsPerSecond | How many fits per second we should do. |
| double HpiSettingsView::getAllowedMeanErrorDistChanged | ( | ) |
Get the allowed mean error distance.
Definition at line 187 of file hpisettingsview.cpp.
| double HpiSettingsView::getAllowedMovementChanged | ( | ) |
Get the allowed head movement.
Definition at line 194 of file hpisettingsview.cpp.
| double HpiSettingsView::getAllowedRotationChanged | ( | ) |
Get the allowed head rotation.
Definition at line 201 of file hpisettingsview.cpp.
| bool HpiSettingsView::getCompStatusChanged | ( | ) |
Get the Comp checked status.
Definition at line 180 of file hpisettingsview.cpp.
| int HpiSettingsView::getFittingWindowSize | ( | ) |
Get number of fits per second to do when performing continuous hpi
Definition at line 215 of file hpisettingsview.cpp.
| bool HpiSettingsView::getSspStatusChanged | ( | ) |
Get the SSP checked status.
Definition at line 173 of file hpisettingsview.cpp.
| void HpiSettingsView::loadCoilPresets | ( | const QString & | sFilePath | ) |
Load coil presets from json file at the provided path
| [in] | sFilePath | PAth to json file with coil preset data |
Definition at line 575 of file hpisettingsview.cpp.
|
virtual |
Loads and inits all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 251 of file hpisettingsview.cpp.
| void HpiSettingsView::newDigitizerList | ( | QList< FIFFLIB::FiffDigPoint > | pointList | ) |
Display digitizer metadata bsed on input pointList
| [in] | pointList | list of digitizer points |
Definition at line 442 of file hpisettingsview.cpp.
|
protected |
Add coil to frequency table widget.
Definition at line 349 of file hpisettingsview.cpp.
|
protected |
Called whenever a cell in the frequenc table widget is changed.
| [in] | row | the row of the changed cell. |
| [in] | col | the column of the changed cell. |
Definition at line 329 of file hpisettingsview.cpp.
|
protected |
Load digitzers from a file.
Definition at line 297 of file hpisettingsview.cpp.
|
protected |
Remove coil to frequency table widget.
Definition at line 405 of file hpisettingsview.cpp.
|
protected |
Adds coil freq and coil error entries based on m_vCoilFreqs. Does not clear existing entires.
Definition at line 496 of file hpisettingsview.cpp.
|
protected |
Populates preset dropdown gui with names and coil freqs in the input array.
| [in] | presetData | json array containing the coil preset name and freqs. |
Definition at line 596 of file hpisettingsview.cpp.
|
protected |
Read Polhemus data from fif file.
Definition at line 429 of file hpisettingsview.cpp.
|
virtual |
Saves all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 222 of file hpisettingsview.cpp.
|
protected |
Selects and loads coil preset at index specified by input argument.
| [in] | iCoilPresetIndex | selected coil preset. |
Definition at line 615 of file hpisettingsview.cpp.
| void HpiSettingsView::setErrorLabels | ( | const QVector< double > & | vError, |
| const double | dMeanErrorDist ) |
Updates the error related labels.
| [in] | vError | the new error values. |
| [in] | dMeanErrorDist | the mean error value. |
Definition at line 110 of file hpisettingsview.cpp.
| void HpiSettingsView::setGoFLabels | ( | const Eigen::VectorXd & | vGoF, |
| const double | dMeanGof ) |
Updates the gof related labels.
| [in] | vGoF | the new gof values. |
| [in] | dMeanGof | the mean gof value. |
Definition at line 137 of file hpisettingsview.cpp.
| void HpiSettingsView::setMovementResults | ( | double | dMovement, |
| double | dRotation ) |
Updates the movement refered to last reference head position.
| [in] | dMovement | the movement refered to last fit. |
| [in] | dRotation | the rotation refered to last fit. |
Definition at line 156 of file hpisettingsview.cpp.
|
protected |
Sets up coil presets for the number of coils specified by the input argument.
| [in] | iNumCoils | number of hpi coils. |
Definition at line 586 of file hpisettingsview.cpp.
|
signal |
Emit this signal whenever SSP checkbox changed.
| [in] | bChecked | Whether the SSP check box is checked. |
|
protected |
UpdateGUI information with data from input digitizer set.
| [in] | digSet | Digigtizer set from which data metadata will be displayed. |
Definition at line 452 of file hpisettingsview.cpp.
|
protectedvirtual |
Update the views GUI based on the set GuiMode (Clinical=0, Research=1).
| [in] | mode | The new mode (Clinical=0, Research=1). |
Implements DISPLIB::AbstractView.
Definition at line 273 of file hpisettingsview.cpp.
|
protectedvirtual |
Update the views GUI based on the set ProcessingMode (RealTime=0, Offline=1).
| [in] | mode | The new mode (RealTime=0, Offline=1). |
Implements DISPLIB::AbstractView.
Definition at line 285 of file hpisettingsview.cpp.
|
protected |
Loaded coil frequency presets
Definition at line 328 of file hpisettingsview.h.
|
protected |
The HPI dialog.
Definition at line 322 of file hpisettingsview.h.
|
protected |
The settings path to store the GUI settings to.
Definition at line 326 of file hpisettingsview.h.
|
protected |
Vector contains the HPI coil frequencies.
Definition at line 324 of file hpisettingsview.h.