MNE-CPP  0.1.9
A Framework for Electrophysiology
Classes | Public Types | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DISP3DLIB::RtSourceInterpolationMatWorker Class Reference

This worker calculates the interpolation matrix. More...

#include <rtsourceinterpolationmatworker.h>

Classes

struct  InterpolationData
 

Public Types

typedef QSharedPointer< RtSourceInterpolationMatWorkerSPtr
 
typedef QSharedPointer< const RtSourceInterpolationMatWorkerConstSPtr
 

Signals

void newInterpolationMatrixCalculated (QSharedPointer< Eigen::SparseMatrix< float > > pMatInterpolationMatrix)
 

Public Member Functions

 RtSourceInterpolationMatWorker ()
 
void setInterpolationFunction (const QString &sInterpolationFunction)
 
void setVisualizationType (int iVisType)
 
void setCancelDistance (double dCancelDist)
 
void setInterpolationInfo (const Eigen::MatrixX3f &matVertices, const QVector< QVector< int > > &vecNeighborVertices, const QVector< int > &vecMappedSubset)
 
void setAnnotationInfo (const Eigen::VectorXi &vecLabelIds, const QList< FSLIB::Label > &lLabels, const Eigen::VectorXi &vecVertNo)
 

Protected Member Functions

void calculateInterpolationOperator ()
 
void calculateAnnotationOperator ()
 
void emitMatrix ()
 

Protected Attributes

struct DISP3DLIB::RtSourceInterpolationMatWorker::InterpolationData m_lInterpolationData
 
bool m_bInterpolationInfoIsInit
 
bool m_bAnnotationInfoIsInit
 
int m_iVisualizationType
 
QSharedPointer< Eigen::SparseMatrix< float > > m_pMatInterpolationMat
 
QSharedPointer< Eigen::SparseMatrix< float > > m_pMatAnnotationMat
 

Detailed Description

This worker calculates the interpolation matrix.

This worker calculates the interpolation matrix.

Definition at line 85 of file rtsourceinterpolationmatworker.h.

Inheritance diagram for DISP3DLIB::RtSourceInterpolationMatWorker:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

Const shared pointer type for RtSourceInterpolationMatWorker class.

Definition at line 91 of file rtsourceinterpolationmatworker.h.

◆ SPtr

Shared pointer type for RtSourceInterpolationMatWorker class.

Definition at line 90 of file rtsourceinterpolationmatworker.h.

Constructor & Destructor Documentation

◆ RtSourceInterpolationMatWorker()

RtSourceInterpolationMatWorker::RtSourceInterpolationMatWorker ( )

Default constructor.

Definition at line 67 of file rtsourceinterpolationmatworker.cpp.

Member Function Documentation

◆ calculateAnnotationOperator()

void RtSourceInterpolationMatWorker::calculateAnnotationOperator ( )
protected

Calculate the annotation operator based on the set annotation info.

Definition at line 218 of file rtsourceinterpolationmatworker.cpp.

◆ calculateInterpolationOperator()

void RtSourceInterpolationMatWorker::calculateInterpolationOperator ( )
protected

Calculate the interpolation operator based on the set interpolation info.

Definition at line 196 of file rtsourceinterpolationmatworker.cpp.

◆ emitMatrix()

void RtSourceInterpolationMatWorker::emitMatrix ( )
protected

Emit the interpolation matrix.

Definition at line 248 of file rtsourceinterpolationmatworker.cpp.

◆ newInterpolationMatrixCalculated

void DISP3DLIB::RtSourceInterpolationMatWorker::newInterpolationMatrixCalculated ( QSharedPointer< Eigen::SparseMatrix< float > >  pMatInterpolationMatrix)
signal

Emit this signal whenever a new interpolation matrix was calcualted.

Parameters
[in]pMatInterpolationMatrixThe new interpolation matrix.

◆ setAnnotationInfo()

void RtSourceInterpolationMatWorker::setAnnotationInfo ( const Eigen::VectorXi &  vecLabelIds,
const QList< FSLIB::Label > &  lLabels,
const Eigen::VectorXi &  vecVertNo 
)

Set annotation data.

Parameters
[in]vecLabelIdsThe labels ids for each of the right hemipshere surface vertex idx.
[in]lLabelsThe label information for the right hemipshere.
[in]vecVertNoThe vertNos for the right hemisphere.

Definition at line 167 of file rtsourceinterpolationmatworker.cpp.

◆ setCancelDistance()

void RtSourceInterpolationMatWorker::setCancelDistance ( double  dCancelDist)

This function sets the cancel distance used in distance calculations for the interpolation. Distances higher than this are ignored, i.e. the respective coefficients are set to zero. Warning: Using this function can take some seconds because recalculation are required.

Parameters
[in]dCancelDistThe new cancel distance value in meters.

Definition at line 125 of file rtsourceinterpolationmatworker.cpp.

◆ setInterpolationFunction()

void RtSourceInterpolationMatWorker::setInterpolationFunction ( const QString &  sInterpolationFunction)

This function sets the function that is used in the interpolation process. Warning: Using this function can take some seconds because recalculation are required.

Parameters
[in]sInterpolationFunctionFunction that computes interpolation coefficients using the distance values.

Definition at line 81 of file rtsourceinterpolationmatworker.cpp.

◆ setInterpolationInfo()

void RtSourceInterpolationMatWorker::setInterpolationInfo ( const Eigen::MatrixX3f &  matVertices,
const QVector< QVector< int > > &  vecNeighborVertices,
const QVector< int > &  vecMappedSubset 
)

Sets the information needed creating the interpolation matrix. Warning: Using this function can take some seconds because recalculation are required.

Parameters
[in]matVerticesThe mesh information in form of vertices.
[in]vecNeighborVerticesThe neighbor vertex information.
[in]vecMappedSubsetVector index position represents the id of the sensor and the qint in each cell is the vertex it is mapped to.
Returns
Returns the created interpolation matrix.

Definition at line 142 of file rtsourceinterpolationmatworker.cpp.

◆ setVisualizationType()

void RtSourceInterpolationMatWorker::setVisualizationType ( int  iVisType)

Set the visualization type.

Parameters
[in]iVisTypeThe new visualization type.

Definition at line 114 of file rtsourceinterpolationmatworker.cpp.

Member Data Documentation

◆ m_bAnnotationInfoIsInit

bool DISP3DLIB::RtSourceInterpolationMatWorker::m_bAnnotationInfoIsInit
protected

Flag if this thread's annotation data was initialized. This flag is used to decide whether specific visualization types can be computed.

Definition at line 193 of file rtsourceinterpolationmatworker.h.

◆ m_bInterpolationInfoIsInit

bool DISP3DLIB::RtSourceInterpolationMatWorker::m_bInterpolationInfoIsInit
protected

Flag if this thread's interpoaltion data was initialized.

Definition at line 192 of file rtsourceinterpolationmatworker.h.

◆ m_iVisualizationType

int DISP3DLIB::RtSourceInterpolationMatWorker::m_iVisualizationType
protected

The visualization type (smoothing or annotation based).

Definition at line 195 of file rtsourceinterpolationmatworker.h.

◆ m_lInterpolationData

struct DISP3DLIB::RtSourceInterpolationMatWorker::InterpolationData DISP3DLIB::RtSourceInterpolationMatWorker::m_lInterpolationData
protected

Container for the interpolation data.

◆ m_pMatAnnotationMat

QSharedPointer<Eigen::SparseMatrix<float> > DISP3DLIB::RtSourceInterpolationMatWorker::m_pMatAnnotationMat
protected

The current itnerpolation matrix (keep this as member so we can easily switch between interpolation and annotation based visualization).

Definition at line 198 of file rtsourceinterpolationmatworker.h.

◆ m_pMatInterpolationMat

QSharedPointer<Eigen::SparseMatrix<float> > DISP3DLIB::RtSourceInterpolationMatWorker::m_pMatInterpolationMat
protected

The current itnerpolation matrix (keep this as member so we can easily switch between interpolation and annotation based visualization).

Definition at line 197 of file rtsourceinterpolationmatworker.h.


The documentation for this class was generated from the following files: