StcLoadingWorker class.
More...
#include <stcloadingworker.h>
|
| void | progress (int percent, const QString &message) |
| void | finished (bool success) |
| void | error (const QString &message) |
StcLoadingWorker class.
StcLoadingWorker performs source estimate loading and interpolation matrix computation in a background thread to avoid blocking the UI.
Definition at line 63 of file stcloadingworker.h.
◆ StcLoadingWorker()
| StcLoadingWorker::StcLoadingWorker |
( |
const QString & | lhPath, |
|
|
const QString & | rhPath, |
|
|
BrainSurface * | lhSurface, |
|
|
BrainSurface * | rhSurface, |
|
|
double | cancelDist = 0.05, |
|
|
QObject * | parent = nullptr ) |
Constructor
- Parameters
-
| [in] | lhPath | Path to left hemisphere STC file. |
| [in] | rhPath | Path to right hemisphere STC file. |
| [in] | lhSurface | Pointer to left hemisphere surface. |
| [in] | rhSurface | Pointer to right hemisphere surface. |
| [in] | cancelDist | Cancel distance for interpolation. |
| [in] | parent | Parent object. |
Definition at line 52 of file stcloadingworker.cpp.
◆ ~StcLoadingWorker()
| StcLoadingWorker::~StcLoadingWorker |
( |
| ) |
|
◆ error
| void StcLoadingWorker::error |
( |
const QString & | message | ) |
|
|
signal |
Emitted when an error occurs.
- Parameters
-
| [in] | message | Error description. |
◆ finished
| void StcLoadingWorker::finished |
( |
bool | success | ) |
|
|
signal |
Emitted when loading is complete.
- Parameters
-
| [in] | success | True if loading succeeded. |
◆ hasLh()
| bool StcLoadingWorker::hasLh |
( |
| ) |
const |
|
inline |
Check if left hemisphere data was loaded.
- Returns
- True if LH data is loaded.
Definition at line 130 of file stcloadingworker.h.
◆ hasRh()
| bool StcLoadingWorker::hasRh |
( |
| ) |
const |
|
inline |
Check if right hemisphere data was loaded.
- Returns
- True if RH data is loaded.
Definition at line 138 of file stcloadingworker.h.
◆ interpolationMatLh()
| QSharedPointer< Eigen::SparseMatrix< float > > StcLoadingWorker::interpolationMatLh |
( |
| ) |
const |
|
inline |
Get the computed left hemisphere interpolation matrix.
- Returns
- Shared pointer to the interpolation matrix.
Definition at line 114 of file stcloadingworker.h.
◆ interpolationMatRh()
| QSharedPointer< Eigen::SparseMatrix< float > > StcLoadingWorker::interpolationMatRh |
( |
| ) |
const |
|
inline |
Get the computed right hemisphere interpolation matrix.
- Returns
- Shared pointer to the interpolation matrix.
Definition at line 122 of file stcloadingworker.h.
◆ process
| void StcLoadingWorker::process |
( |
| ) |
|
|
slot |
Perform the loading and computation work. This slot should be called after moving the worker to a thread.
Definition at line 75 of file stcloadingworker.cpp.
◆ progress
| void StcLoadingWorker::progress |
( |
int | percent, |
|
|
const QString & | message ) |
|
signal |
Emitted to report progress.
- Parameters
-
| [in] | percent | Progress percentage (0-100). |
| [in] | message | Status message describing current operation. |
◆ stcLh()
Get the loaded left hemisphere source estimate.
- Returns
- The left hemisphere source estimate.
Definition at line 98 of file stcloadingworker.h.
◆ stcRh()
Get the loaded right hemisphere source estimate.
- Returns
- The right hemisphere source estimate.
Definition at line 106 of file stcloadingworker.h.
The documentation for this class was generated from the following files: