The HpiSettingsView class provides a QWidget for the HPI controls.
More...
#include <hpisettingsview.h>
|
enum | StyleMode { Default,
Dark
} |
|
enum | GuiMode { Clinical,
Research
} |
|
enum | ProcessingMode { RealTime,
Offline
} |
|
typedef QSharedPointer< AbstractView > | SPtr |
|
typedef QSharedPointer< const AbstractView > | ConstSPtr |
|
The HpiSettingsView class provides a QWidget for the HPI controls.
The HpiSettingsView class provides a QWidget for the HPI controls.
Definition at line 84 of file hpisettingsview.h.
◆ HpiSettingsView()
HpiSettingsView::HpiSettingsView |
( |
const QString & |
sSettingsPath = "" , |
|
|
QWidget * |
parent = 0 , |
|
|
Qt::WindowFlags |
f = Qt::Widget |
|
) |
| |
◆ addCoilFreqToGUI()
void HpiSettingsView::addCoilFreqToGUI |
( |
int |
iCoilFreq | ) |
|
|
protected |
Adds coil frequency to gui table based on input argument.
- Parameters
-
Definition at line 524 of file hpisettingsview.cpp.
◆ allowedMeanErrorDistChanged
void DISPLIB::HpiSettingsView::allowedMeanErrorDistChanged |
( |
double |
dAllowedMeanErrorDist | ) |
|
|
signal |
Emit this signal whenever the allowed error changed.
- Parameters
-
[in] | dAllowedMeanErrorDist | Allowed mean error in mm. |
◆ allowedMovementChanged
void DISPLIB::HpiSettingsView::allowedMovementChanged |
( |
double |
dAllowedMovement | ) |
|
|
signal |
Emit this signal whenever the allowed head movement threshold changed.
- Parameters
-
[in] | dAllowedMeanErrorDist | Allowed movement threshold. |
◆ allowedRotationChanged
void DISPLIB::HpiSettingsView::allowedRotationChanged |
( |
double |
dAllowedRotation | ) |
|
|
signal |
Emit this signal whenever the allowed head rotation threshold changed.
- Parameters
-
[in] | dAllowedMeanErrorDist | Allowed rotation in degree. |
◆ clearCoilGUI()
void HpiSettingsView::clearCoilGUI |
( |
| ) |
|
|
protected |
Clears GUI display tables for coil error and coil freqs and empties all rows
Definition at line 569 of file hpisettingsview.cpp.
◆ clearView()
void HpiSettingsView::clearView |
( |
| ) |
|
|
virtual |
◆ coilFrequenciesChanged
void DISPLIB::HpiSettingsView::coilFrequenciesChanged |
( |
const QVector< int > & |
vCoilFreqs | ) |
|
|
signal |
Emit this signal whenever the coil frequencies changed.
- Parameters
-
[in] | vCoilFreqs | The new coil frequencies. |
◆ compStatusChanged
void DISPLIB::HpiSettingsView::compStatusChanged |
( |
bool |
bChecked | ) |
|
|
signal |
Emit this signal whenever compensator checkbox changed.
- Parameters
-
[in] | bChecked | Whether the compensator check box is checked. |
◆ contHpiStatusChanged
void DISPLIB::HpiSettingsView::contHpiStatusChanged |
( |
bool |
bChecked | ) |
|
|
signal |
Emit this signal whenever continous HPI checkbox changed.
- Parameters
-
[in] | bChecked | Whether the continous HPI check box is checked. |
◆ continuousHPIChecked()
bool HpiSettingsView::continuousHPIChecked |
( |
| ) |
|
Returns whether continuous fitting is checked.
- Returns
- Whether continuous fitting is checked.
Definition at line 226 of file hpisettingsview.cpp.
◆ digitizersChanged
void DISPLIB::HpiSettingsView::digitizersChanged |
( |
const QList< FIFFLIB::FiffDigPoint > & |
lDigitzers, |
|
|
const QString & |
sFilePath |
|
) |
| |
|
signal |
Emit this signal whenever new digitzers were loaded.
- Parameters
-
[in] | lDigitzers | The new digitzers. |
[in] | sFilePath | The file path to the new digitzers. |
◆ doFreqOrder
void DISPLIB::HpiSettingsView::doFreqOrder |
( |
| ) |
|
|
signal |
Emit this signal whenever the frequency ordering is supposed to be triggered.
◆ doSingleHpiFit
void DISPLIB::HpiSettingsView::doSingleHpiFit |
( |
| ) |
|
|
signal |
Emit this signal whenever a single HPI fit is supposed to be triggered.
◆ fittingWindowSizeChanged
void DISPLIB::HpiSettingsView::fittingWindowSizeChanged |
( |
int |
iFitsPerSecond | ) |
|
|
signal |
Emit this signal when 'fits per second' control gets updated.
- Parameters
-
[in] | iFitsPerSecond | How many fits per second we should do. |
◆ getAllowedMeanErrorDistChanged()
double HpiSettingsView::getAllowedMeanErrorDistChanged |
( |
| ) |
|
Get the allowed mean error distance.
- Returns
- The current allowed mean error distance.
Definition at line 205 of file hpisettingsview.cpp.
◆ getAllowedMovementChanged()
double HpiSettingsView::getAllowedMovementChanged |
( |
| ) |
|
Get the allowed head movement.
- Returns
- The current allowed head movement.
Definition at line 212 of file hpisettingsview.cpp.
◆ getAllowedRotationChanged()
double HpiSettingsView::getAllowedRotationChanged |
( |
| ) |
|
Get the allowed head rotation.
- Returns
- The current allowed head rotation.
Definition at line 219 of file hpisettingsview.cpp.
◆ getCompStatusChanged()
bool HpiSettingsView::getCompStatusChanged |
( |
| ) |
|
Get the Comp checked status.
- Returns
- The current Comp checked status.
Definition at line 198 of file hpisettingsview.cpp.
◆ getFittingWindowSize()
int HpiSettingsView::getFittingWindowSize |
( |
| ) |
|
Get number of fits per second to do when performing continuous hpi
- Returns
- Number of fits per second
Definition at line 233 of file hpisettingsview.cpp.
◆ getSspStatusChanged()
bool HpiSettingsView::getSspStatusChanged |
( |
| ) |
|
Get the SSP checked status.
- Returns
- The current SSP checked status.
Definition at line 191 of file hpisettingsview.cpp.
◆ loadCoilPresets()
void HpiSettingsView::loadCoilPresets |
( |
const QString & |
sFilePath | ) |
|
Load coil presets from json file at the provided path
- Parameters
-
[in] | sFilePath | PAth to json file with coil preset data |
Definition at line 593 of file hpisettingsview.cpp.
◆ loadSettings()
void HpiSettingsView::loadSettings |
( |
| ) |
|
|
virtual |
◆ newDigitizerList()
Display digitizer metadata bsed on input pointList
- Parameters
-
[in] | pointList | list of digitizer points |
Definition at line 460 of file hpisettingsview.cpp.
◆ onAddCoil()
void HpiSettingsView::onAddCoil |
( |
| ) |
|
|
protected |
◆ onFrequencyCellChanged()
void HpiSettingsView::onFrequencyCellChanged |
( |
int |
row, |
|
|
int |
col |
|
) |
| |
|
protected |
Called whenever a cell in the frequenc table widget is changed.
- Parameters
-
[in] | row | the row of the changed cell. |
[in] | col | the column of the changed cell. |
Definition at line 347 of file hpisettingsview.cpp.
◆ onLoadDigitizers()
void HpiSettingsView::onLoadDigitizers |
( |
| ) |
|
|
protected |
◆ onRemoveCoil()
void HpiSettingsView::onRemoveCoil |
( |
| ) |
|
|
protected |
◆ populateCoilGUI()
void HpiSettingsView::populateCoilGUI |
( |
| ) |
|
|
protected |
Adds coil freq and coil error entries based on m_vCoilFreqs. Does not clear existing entires.
Definition at line 514 of file hpisettingsview.cpp.
◆ populatePresetGUI()
void HpiSettingsView::populatePresetGUI |
( |
const QJsonArray & |
presetData | ) |
|
|
protected |
Populates preset dropdown gui with names and coil freqs in the input array.
- Parameters
-
[in] | presetData | json array containing the coil preset name and freqs. |
Definition at line 614 of file hpisettingsview.cpp.
◆ readDigitizersFromFile()
QList< FiffDigPoint > HpiSettingsView::readDigitizersFromFile |
( |
const QString & |
fileName | ) |
|
|
protected |
◆ saveSettings()
void HpiSettingsView::saveSettings |
( |
| ) |
|
|
virtual |
◆ selectCoilPreset()
void HpiSettingsView::selectCoilPreset |
( |
int |
iCoilPresetIndex | ) |
|
|
protected |
Selects and loads coil preset at index specified by input argument.
- Parameters
-
[in] | iCoilPresetIndex | selected coil preset. |
Definition at line 633 of file hpisettingsview.cpp.
◆ setErrorLabels()
void HpiSettingsView::setErrorLabels |
( |
const QVector< double > & |
vError, |
|
|
const double |
dMeanErrorDist |
|
) |
| |
Updates the error related labels.
- Parameters
-
[in] | vError | the new error values. |
[in] | dMeanErrorDist | the mean error value. |
Definition at line 128 of file hpisettingsview.cpp.
◆ setGoFLabels()
void HpiSettingsView::setGoFLabels |
( |
const Eigen::VectorXd & |
vGoF, |
|
|
const double |
dMeanGof |
|
) |
| |
Updates the gof related labels.
- Parameters
-
[in] | vGoF | the new gof values. |
[in] | dMeanGof | the mean gof value. |
Definition at line 155 of file hpisettingsview.cpp.
◆ setMovementResults()
void HpiSettingsView::setMovementResults |
( |
double |
dMovement, |
|
|
double |
dRotation |
|
) |
| |
Updates the movement refered to last reference head position.
- Parameters
-
[in] | dMovement | the movement refered to last fit. |
[in] | dRotation | the rotation refered to last fit. |
Definition at line 174 of file hpisettingsview.cpp.
◆ setupCoilPresets()
void HpiSettingsView::setupCoilPresets |
( |
int |
iNumCoils | ) |
|
|
protected |
Sets up coil presets for the number of coils specified by the input argument.
- Parameters
-
[in] | iNumCoils | number of hpi coils. |
Definition at line 604 of file hpisettingsview.cpp.
◆ sspStatusChanged
void DISPLIB::HpiSettingsView::sspStatusChanged |
( |
bool |
bChecked | ) |
|
|
signal |
Emit this signal whenever SSP checkbox changed.
- Parameters
-
[in] | bChecked | Whether the SSP check box is checked. |
◆ updateDigitizerInfoGUI()
UpdateGUI information with data from input digitizer set.
- Parameters
-
[in] | digSet | Digigtizer set from which data metadata will be displayed. |
Definition at line 470 of file hpisettingsview.cpp.
◆ updateGuiMode()
void HpiSettingsView::updateGuiMode |
( |
GuiMode |
mode | ) |
|
|
protectedvirtual |
Update the views GUI based on the set GuiMode (Clinical=0, Research=1).
- Parameters
-
[in] | mode | The new mode (Clinical=0, Research=1). |
Implements DISPLIB::AbstractView.
Definition at line 291 of file hpisettingsview.cpp.
◆ updateProcessingMode()
void HpiSettingsView::updateProcessingMode |
( |
ProcessingMode |
mode | ) |
|
|
protectedvirtual |
Update the views GUI based on the set ProcessingMode (RealTime=0, Offline=1).
- Parameters
-
[in] | mode | The new mode (RealTime=0, Offline=1). |
Implements DISPLIB::AbstractView.
Definition at line 303 of file hpisettingsview.cpp.
◆ m_CoilPresets
QJsonDocument DISPLIB::HpiSettingsView::m_CoilPresets |
|
protected |
◆ m_pUi
Ui::HpiSettingsViewWidget* DISPLIB::HpiSettingsView::m_pUi |
|
protected |
◆ m_sSettingsPath
QString DISPLIB::HpiSettingsView::m_sSettingsPath |
|
protected |
◆ m_vCoilFreqs
QVector<int> DISPLIB::HpiSettingsView::m_vCoilFreqs |
|
protected |
The documentation for this class was generated from the following files: