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

Data3DTreeModel provides a tree based data model to hold all information about data which was added to the View 3D. More...

#include <data3Dtreemodel.h>

Public Types

typedef QSharedPointer< Data3DTreeModelSPtr
 
typedef QSharedPointer< const Data3DTreeModelConstSPtr
 

Public Member Functions

 Data3DTreeModel (QObject *parent=0)
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
int columnCount (const QModelIndex &parent) const
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 
Qt::ItemFlags flags (const QModelIndex &index) const
 
QList< FsSurfaceTreeItem * > addSurfaceSet (const QString &sSubject, const QString &sMriSetName, const FSLIB::SurfaceSet &surfaceSet, const FSLIB::AnnotationSet &annotationSet=FSLIB::AnnotationSet())
 
FsSurfaceTreeItemaddSurface (const QString &sSubject, const QString &sSet, const FSLIB::Surface &surface, const FSLIB::Annotation &annotation=FSLIB::Annotation())
 
QList< SourceSpaceTreeItem * > addSourceSpace (const QString &sSubject, const QString &sMeasurementSetName, const MNELIB::MNESourceSpace &sourceSpace)
 
QList< SourceSpaceTreeItem * > addForwardSolution (const QString &sSubject, const QString &sMeasurementSetName, const MNELIB::MNEForwardSolution &forwardSolution)
 
MneDataTreeItemaddSourceData (const QString &sSubject, const QString &sMeasurementSetName, const MNELIB::MNESourceEstimate &tSourceEstimate, const MNELIB::MNEForwardSolution &tForwardSolution, const FSLIB::SurfaceSet &tSurfSet, const FSLIB::AnnotationSet &tAnnotSet)
 
EcdDataTreeItemaddDipoleFitData (const QString &sSubject, const QString &sSet, const INVERSELIB::ECDSet &ecdSet)
 
QList< NetworkTreeItem * > addConnectivityData (const QString &sSubject, const QString &sMeasurementSetName, const QList< CONNECTIVITYLIB::Network > &networkData)
 
NetworkTreeItemaddConnectivityData (const QString &sSubject, const QString &sMeasurementSetName, const CONNECTIVITYLIB::Network &networkData)
 
BemTreeItemaddBemData (const QString &sSubject, const QString &sBemSetName, const MNELIB::MNEBem &bem)
 
SensorSetTreeItemaddMegSensorInfo (const QString &sSubject, const QString &sSensorSetName, const QList< FIFFLIB::FiffChInfo > &lChInfo, const MNELIB::MNEBem &sensor=MNELIB::MNEBem(), const QStringList &bads=QStringList())
 
SensorSetTreeItemaddEegSensorInfo (const QString &sSubject, const QString &sSensorSetName, const QList< FIFFLIB::FiffChInfo > &lChInfo, const QStringList &bads=QStringList())
 
DigitizerSetTreeItemaddDigitizerData (const QString &sSubject, const QString &sMeasurementSetName, const FIFFLIB::FiffDigPointSet &digitizer)
 
SensorDataTreeItemaddSensorData (const QString &sSubject, const QString &sMeasurementSetName, const Eigen::MatrixXd &matSensorData, const MNELIB::MNEBemSurface &tBemSurface, const FIFFLIB::FiffInfo &fiffInfo, const QString &sDataType)
 
QPointer< Qt3DCore::QEntity > getRootEntity ()
 

Protected Member Functions

SubjectTreeItemaddSubject (const QString &sSubject)
 
SensorDataTreeItemaddCpuSensorData (const QString &sSubject, const QString &sMeasurementSetName, const Eigen::MatrixXd &matSensorData, const MNELIB::MNEBemSurface &tBemSurface, const FIFFLIB::FiffInfo &fiffInfo, const QString &sDataType, const double dCancelDist, const QString &sInterpolationFunction)
 
SensorDataTreeItemaddGpuSensorData (const QString &sSubject, const QString &sMeasurementSetName, const Eigen::MatrixXd &matSensorData, const MNELIB::MNEBemSurface &tBemSurface, const FIFFLIB::FiffInfo &fiffInfo, const QString &sDataType, const double dCancelDist, const QString &sInterpolationFunction)
 
void initMetatypes ()
 

Protected Attributes

QStandardItem * m_pRootItem
 
QPointer< Qt3DCore::QEntity > m_pModelEntity
 

Detailed Description

Data3DTreeModel provides a tree based data model to hold all information about data which was added to the View 3D.

Data3DTreeModel provides a tree based data model to hold all information about data which was added to the View 3D.

Definition at line 126 of file data3Dtreemodel.h.

Inheritance diagram for DISP3DLIB::Data3DTreeModel:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

Const shared pointer type for Data3DTreeModel class.

Definition at line 132 of file data3Dtreemodel.h.

◆ SPtr

Shared pointer type for Data3DTreeModel class.

Definition at line 131 of file data3Dtreemodel.h.

Constructor & Destructor Documentation

◆ Data3DTreeModel()

Data3DTreeModel::Data3DTreeModel ( QObject *  parent = 0)
explicit

Default constructor.

Parameters
[in]parentThe parent of this class.

Definition at line 89 of file data3Dtreemodel.cpp.

Member Function Documentation

◆ addBemData()

BemTreeItem * Data3DTreeModel::addBemData ( const QString &  sSubject,
const QString &  sBemSetName,
const MNELIB::MNEBem bem 
)

Adds BEM data.

Parameters
[in]sSubjectThe name of the subject.
[in]sBemSetNameThe name of the BEM set to which the data is to be added. If it does not exist yet, it will be created.
[in]bemThe Bem information.
Returns
Returns a pointer to the added tree item. Default is a NULL pointer if no item was added.

Definition at line 360 of file data3Dtreemodel.cpp.

◆ addConnectivityData() [1/2]

NetworkTreeItem * Data3DTreeModel::addConnectivityData ( const QString &  sSubject,
const QString &  sMeasurementSetName,
const CONNECTIVITYLIB::Network networkData 
)

Adds connectivity estimation data.

Parameters
[in]sSubjectThe name of the subject.
[in]sMeasurementSetNameThe name of the measurement set to which the data is to be added. If it does not exist yet, it will be created.
[in]networkDataThe connectivity data.
Returns
Returns a pointer to the added tree item. Default is a NULL pointer if no item was added.

Definition at line 333 of file data3Dtreemodel.cpp.

◆ addConnectivityData() [2/2]

QList< NetworkTreeItem * > Data3DTreeModel::addConnectivityData ( const QString &  sSubject,
const QString &  sMeasurementSetName,
const QList< CONNECTIVITYLIB::Network > &  networkData 
)

Adds a list of connectivity estimation data.

Parameters
[in]sSubjectThe name of the subject.
[in]sMeasurementSetNameThe name of the measurement set to which the data is to be added. If it does not exist yet, it will be created.
[in]networkDataThe list of connectivity data.
Returns
Returns a lsit with pointers to the added tree items.

Definition at line 316 of file data3Dtreemodel.cpp.

◆ addCpuSensorData()

SensorDataTreeItem* DISP3DLIB::Data3DTreeModel::addCpuSensorData ( const QString &  sSubject,
const QString &  sMeasurementSetName,
const Eigen::MatrixXd &  matSensorData,
const MNELIB::MNEBemSurface tBemSurface,
const FIFFLIB::FiffInfo fiffInfo,
const QString &  sDataType,
const double  dCancelDist,
const QString &  sInterpolationFunction 
)
protected

Adds live sensor data for interpolation with the cpu.

Parameters
[in]sSubjectThe name of the subject.
[in]sMeasurementSetNameThe name of the measurement set to which the data is to be added. If it does not exist yet, it will be created.
[in]matSensorDataThe Sensor Data.
[in]tBemSurfaceThe Bem Surface data.
[in]fiffInfoThe FiffInfo that holds all information about the sensors.
[in]sDataTypeThe data type ("MEG" or "EEG").
[in]dCancelDistDistances higher than this are ignored for the interpolation.
[in]sInterpolationFunctionFunction that computes interpolation coefficients using the distance values.
Returns
Returns a pointer to the added tree item. Default is a NULL pointer if no item was added.

◆ addDigitizerData()

DigitizerSetTreeItem * Data3DTreeModel::addDigitizerData ( const QString &  sSubject,
const QString &  sMeasurementSetName,
const FIFFLIB::FiffDigPointSet digitizer 
)

Adds digitizer data.

Parameters
[in]sSubjectThe name of the subject.
[in]sMeasurementSetNameThe name of the measurement set to which the data is to be added. If it does not exist yet, it will be created.
[in]digitizerThe digitizer information.
Returns
Returns a pointer to the added tree item. Default is a NULL pointer if no item was added.

Definition at line 452 of file data3Dtreemodel.cpp.

◆ addDipoleFitData()

EcdDataTreeItem * Data3DTreeModel::addDipoleFitData ( const QString &  sSubject,
const QString &  sSet,
const INVERSELIB::ECDSet ecdSet 
)

Adds source estimated activation data (dipole fit).

Parameters
[in]sSubjectThe name of the subject.
[in]sMeasurementSetNameThe name of the measurement set to which the data is to be added. If it does not exist yet, it will be created.
[in]ecdSetThe ECDSet dipole data.
Returns
Returns a pointer to the added tree item. Default is a NULL pointer if no item was added.

Definition at line 288 of file data3Dtreemodel.cpp.

◆ addEegSensorInfo()

SensorSetTreeItem * Data3DTreeModel::addEegSensorInfo ( const QString &  sSubject,
const QString &  sSensorSetName,
const QList< FIFFLIB::FiffChInfo > &  lChInfo,
const QStringList &  bads = QStringList() 
)

Adds EEG sensor info.

Parameters
[in]sSubjectThe name of the subject.
[in]sSensorSetNameThe name of the sensor set to which the data is to be added. If it does not exist yet, it will be created.
[in]lChInfoThe channel information used to plot the EEG channels.
[in]badsThe bad channel list.
Returns
Returns a pointer to the added tree item. Default is a NULL pointer if no item was added.

Definition at line 418 of file data3Dtreemodel.cpp.

◆ addForwardSolution()

QList< SourceSpaceTreeItem * > Data3DTreeModel::addForwardSolution ( const QString &  sSubject,
const QString &  sMeasurementSetName,
const MNELIB::MNEForwardSolution forwardSolution 
)

Adds a forward solution data to the brain tree model. Convenient function to addBrainData(const QString& text, const MNESourceSpace& tSourceSpace).

Parameters
[in]sSubjectThe name of the subject.
[in]sMeasurementSetNameThe name of the measurement set to which the data is to be added. If it does not exist yet, it will be created.
[in]forwardSolutionThe forward solution information.
Returns
Returns a pointer to the added tree item. Default is a NULL pointer if no item was added.

Definition at line 230 of file data3Dtreemodel.cpp.

◆ addGpuSensorData()

SensorDataTreeItem* DISP3DLIB::Data3DTreeModel::addGpuSensorData ( const QString &  sSubject,
const QString &  sMeasurementSetName,
const Eigen::MatrixXd &  matSensorData,
const MNELIB::MNEBemSurface tBemSurface,
const FIFFLIB::FiffInfo fiffInfo,
const QString &  sDataType,
const double  dCancelDist,
const QString &  sInterpolationFunction 
)
protected

Adds live sensor data for interpolation with a compute shader.

Parameters
[in]sSubjectThe name of the subject.
[in]sMeasurementSetNameThe name of the measurement set to which the data is to be added. If it does not exist yet, it will be created.
[in]matSensorDataThe Sensor Data.
[in]tBemSurfaceThe Bem Surface data.
[in]fiffInfoThe FiffInfo that holds all information about the sensors.
[in]sDataTypeThe data type ("MEG" or "EEG").
[in]dCancelDistDistances higher than this are ignored for the interpolation.
[in]sInterpolationFunctionFunction that computes interpolation coefficients using the distance values.
Returns
Returns a pointer to the added tree item. Default is a NULL pointer if no item was added.

◆ addMegSensorInfo()

SensorSetTreeItem * Data3DTreeModel::addMegSensorInfo ( const QString &  sSubject,
const QString &  sSensorSetName,
const QList< FIFFLIB::FiffChInfo > &  lChInfo,
const MNELIB::MNEBem sensor = MNELIB::MNEBem(),
const QStringList &  bads = QStringList() 
)

Adds MEG sensor info.

Parameters
[in]sSubjectThe name of the subject.
[in]sSensorSetNameThe name of the sensor set to which the data is to be added. If it does not exist yet, it will be created.
[in]sensorThe sensor surface information in form of a BEM model. Sensor surfaces are internally represented as MNEBem models.
[in]lChInfoThe channel information used to plot the MEG channels.
[in]badsThe bad channel list.
Returns
Returns a pointer to the added tree item. Default is a NULL pointer if no item was added.

Definition at line 386 of file data3Dtreemodel.cpp.

◆ addSensorData()

SensorDataTreeItem * Data3DTreeModel::addSensorData ( const QString &  sSubject,
const QString &  sMeasurementSetName,
const Eigen::MatrixXd &  matSensorData,
const MNELIB::MNEBemSurface tBemSurface,
const FIFFLIB::FiffInfo fiffInfo,
const QString &  sDataType 
)

Adds live sensor data.

Parameters
[in]sSubjectThe name of the subject.
[in]sMeasurementSetNameThe name of the measurement set to which the data is to be added. If it does not exist yet, it will be created.
[in]matSensorDataThe Sensor Data.
[in]tBemSurfaceThe Bem Surface data.
[in]fiffInfoThe FiffInfo that holds all information about the sensors.
[in]sDataTypeThe data type ("MEG" or "EEG").
Returns
Returns a pointer to the added tree item. Default is a NULL pointer if no item was added.

Definition at line 478 of file data3Dtreemodel.cpp.

◆ addSourceData()

MneDataTreeItem * Data3DTreeModel::addSourceData ( const QString &  sSubject,
const QString &  sMeasurementSetName,
const MNELIB::MNESourceEstimate tSourceEstimate,
const MNELIB::MNEForwardSolution tForwardSolution,
const FSLIB::SurfaceSet tSurfSet,
const FSLIB::AnnotationSet tAnnotSet 
)

Adds source estimated activation data (MNE or RTC-MUSIC).

Parameters
[in]sSubjectThe name of the subject.
[in]sMeasurementSetNameThe name of the measurement set to which the data is to be added. If it does not exist yet, it will be created.
[in]tSourceEstimateThe MNESourceEstimate.
[in]tForwardSolutionThe MNEForwardSolution.
[in]tSurfSetThe surface set holding the left and right hemisphere surfaces.
[in]tAnnotSetThe annotation set holding the left and right hemisphere annotations.
Returns
Returns a pointer to the added tree item. Default is a NULL pointer if no item was added.

Definition at line 239 of file data3Dtreemodel.cpp.

◆ addSourceSpace()

QList< SourceSpaceTreeItem * > Data3DTreeModel::addSourceSpace ( const QString &  sSubject,
const QString &  sMeasurementSetName,
const MNELIB::MNESourceSpace sourceSpace 
)

Adds source space brain data.

Parameters
[in]sSubjectThe name of the subject.
[in]sMeasurementSetNameThe name of the measurement set to which the data is to be added. If it does not exist yet, it will be created.
[in]sourceSpaceThe source space information.
Returns
Returns a pointer to the added tree item. Default is a NULL pointer if no item was added.

Definition at line 204 of file data3Dtreemodel.cpp.

◆ addSubject()

SubjectTreeItem * Data3DTreeModel::addSubject ( const QString &  sSubject)
protected

Create a subject tree item if the item was not found. This is a convenience function.

Parameters
[in]sSubjectThe name of the subject.
Returns
Returns a pointer to the first found or created subject tree item. Default is a NULL pointer if no item was found.

Definition at line 534 of file data3Dtreemodel.cpp.

◆ addSurface()

FsSurfaceTreeItem * Data3DTreeModel::addSurface ( const QString &  sSubject,
const QString &  sSet,
const FSLIB::Surface surface,
const FSLIB::Annotation annotation = FSLIB::Annotation() 
)

Adds FreeSurfer brain data.

Parameters
[in]sSubjectThe name of the subject.
[in]sMriSetNameThe name of the MRI set to which the data is to be added. If it does not exist yet, it will be created.
[in]surfaceFreeSurfer surface.
[in]annotationFreeSurfer annotation.
Returns
Returns a pointer to the added tree item. Default is a NULL pointer if no item was added.

Definition at line 177 of file data3Dtreemodel.cpp.

◆ addSurfaceSet()

QList< FsSurfaceTreeItem * > Data3DTreeModel::addSurfaceSet ( const QString &  sSubject,
const QString &  sMriSetName,
const FSLIB::SurfaceSet surfaceSet,
const FSLIB::AnnotationSet annotationSet = FSLIB::AnnotationSet() 
)

Adds FreeSurfer brain data SETS.

Parameters
[in]sSubjectThe name of the subject.
[in]sMriSetNameThe name of the MRI set to which the data is to be added. If it does not exist yet, it will be created.
[in]surfaceSetFreeSurfer surface set.
[in]annotationSetFreeSurfer annotation set.
Returns
Returns a QList with the added surface tree items. The ordering. of the list hereby corresponds to the ordering of the input surface set. The list is empty if no item was added.

Definition at line 157 of file data3Dtreemodel.cpp.

◆ data()

QVariant Data3DTreeModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const

QStandardItemModel functions

Definition at line 101 of file data3Dtreemodel.cpp.

◆ getRootEntity()

QPointer< Qt3DCore::QEntity > Data3DTreeModel::getRootEntity ( )

Returns the 3D model root entity.

Returns
The model's root entity to acess the scenegraph.

Definition at line 527 of file data3Dtreemodel.cpp.

◆ initMetatypes()

void Data3DTreeModel::initMetatypes ( )
protected

Init the meta types

Definition at line 556 of file data3Dtreemodel.cpp.

Member Data Documentation

◆ m_pModelEntity

QPointer<Qt3DCore::QEntity> DISP3DLIB::Data3DTreeModel::m_pModelEntity
protected

The parent 3D entity for this model.

Definition at line 431 of file data3Dtreemodel.h.

◆ m_pRootItem

QStandardItem* DISP3DLIB::Data3DTreeModel::m_pRootItem
protected

The root item of the tree model.

Definition at line 430 of file data3Dtreemodel.h.


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