v2.0.0
Loading...
Searching...
No Matches
StcLoadingWorker Class Reference

StcLoadingWorker class. More...

#include <stcloadingworker.h>

Public Slots

void process ()

Signals

void progress (int percent, const QString &message)
void finished (bool success)
void error (const QString &message)

Public Member Functions

 StcLoadingWorker (const QString &lhPath, const QString &rhPath, BrainSurface *lhSurface, BrainSurface *rhSurface, double cancelDist=0.05, QObject *parent=nullptr)
 ~StcLoadingWorker ()
const MNELIB::MNESourceEstimatestcLh () const
const MNELIB::MNESourceEstimatestcRh () const
QSharedPointer< Eigen::SparseMatrix< float > > interpolationMatLh () const
QSharedPointer< Eigen::SparseMatrix< float > > interpolationMatRh () const
bool hasLh () const
bool hasRh () const

Detailed Description

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.

Inheritance diagram for StcLoadingWorker:
Inheritance graph

Constructor & Destructor Documentation

◆ StcLoadingWorker()

StcLoadingWorker::StcLoadingWorker ( const QString & lhPath,
const QString & rhPath,
BrainSurface * lhSurface,
BrainSurface * rhSurface,
double cancelDist = 0.05,
QObject * parent = nullptr )

Constructor

Parameters
[in]lhPathPath to left hemisphere STC file.
[in]rhPathPath to right hemisphere STC file.
[in]lhSurfacePointer to left hemisphere surface.
[in]rhSurfacePointer to right hemisphere surface.
[in]cancelDistCancel distance for interpolation.
[in]parentParent object.

Definition at line 52 of file stcloadingworker.cpp.

◆ ~StcLoadingWorker()

StcLoadingWorker::~StcLoadingWorker ( )

Destructor

Definition at line 69 of file stcloadingworker.cpp.

Member Function Documentation

◆ error

void StcLoadingWorker::error ( const QString & message)
signal

Emitted when an error occurs.

Parameters
[in]messageError description.

◆ finished

void StcLoadingWorker::finished ( bool success)
signal

Emitted when loading is complete.

Parameters
[in]successTrue 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]percentProgress percentage (0-100).
[in]messageStatus message describing current operation.

◆ stcLh()

const MNELIB::MNESourceEstimate & StcLoadingWorker::stcLh ( ) const
inline

Get the loaded left hemisphere source estimate.

Returns
The left hemisphere source estimate.

Definition at line 98 of file stcloadingworker.h.

◆ stcRh()

const MNELIB::MNESourceEstimate & StcLoadingWorker::stcRh ( ) const
inline

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: