|
MNE-CPP
0.1.9
A Framework for Electrophysiology
|
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< Data3DTreeModel > | SPtr |
| typedef QSharedPointer< const Data3DTreeModel > | ConstSPtr |
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()) |
| FsSurfaceTreeItem * | addSurface (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) |
| MneDataTreeItem * | addSourceData (const QString &sSubject, const QString &sMeasurementSetName, const MNELIB::MNESourceEstimate &tSourceEstimate, const MNELIB::MNEForwardSolution &tForwardSolution, const FSLIB::SurfaceSet &tSurfSet, const FSLIB::AnnotationSet &tAnnotSet) |
| EcdDataTreeItem * | addDipoleFitData (const QString &sSubject, const QString &sSet, const INVERSELIB::ECDSet &ecdSet) |
| QList< NetworkTreeItem * > | addConnectivityData (const QString &sSubject, const QString &sMeasurementSetName, const QList< CONNECTIVITYLIB::Network > &networkData) |
| NetworkTreeItem * | addConnectivityData (const QString &sSubject, const QString &sMeasurementSetName, const CONNECTIVITYLIB::Network &networkData) |
| BemTreeItem * | addBemData (const QString &sSubject, const QString &sBemSetName, const MNELIB::MNEBem &bem) |
| SensorSetTreeItem * | addMegSensorInfo (const QString &sSubject, const QString &sSensorSetName, const QList< FIFFLIB::FiffChInfo > &lChInfo, const MNELIB::MNEBem &sensor=MNELIB::MNEBem(), const QStringList &bads=QStringList()) |
| SensorSetTreeItem * | addEegSensorInfo (const QString &sSubject, const QString &sSensorSetName, const QList< FIFFLIB::FiffChInfo > &lChInfo, const QStringList &bads=QStringList()) |
| DigitizerSetTreeItem * | addDigitizerData (const QString &sSubject, const QString &sMeasurementSetName, const FIFFLIB::FiffDigPointSet &digitizer) |
| SensorDataTreeItem * | addSensorData (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 | |
| SubjectTreeItem * | addSubject (const QString &sSubject) |
| SensorDataTreeItem * | 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) |
| SensorDataTreeItem * | 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) |
| void | initMetatypes () |
Protected Attributes | |
| QStandardItem * | m_pRootItem |
| QPointer< Qt3DCore::QEntity > | m_pModelEntity |
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.

| typedef QSharedPointer<const Data3DTreeModel> DISP3DLIB::Data3DTreeModel::ConstSPtr |
Const shared pointer type for Data3DTreeModel class.
Definition at line 132 of file data3Dtreemodel.h.
| typedef QSharedPointer<Data3DTreeModel> DISP3DLIB::Data3DTreeModel::SPtr |
Shared pointer type for Data3DTreeModel class.
Definition at line 131 of file data3Dtreemodel.h.
|
explicit |
Default constructor.
| [in] | parent | The parent of this class. |
Definition at line 89 of file data3Dtreemodel.cpp.
| BemTreeItem * Data3DTreeModel::addBemData | ( | const QString & | sSubject, |
| const QString & | sBemSetName, | ||
| const MNELIB::MNEBem & | bem | ||
| ) |
Adds BEM data.
| [in] | sSubject | The name of the subject. |
| [in] | sBemSetName | The name of the BEM set to which the data is to be added. If it does not exist yet, it will be created. |
| [in] | bem | The Bem information. |
Definition at line 360 of file data3Dtreemodel.cpp.
| NetworkTreeItem * Data3DTreeModel::addConnectivityData | ( | const QString & | sSubject, |
| const QString & | sMeasurementSetName, | ||
| const CONNECTIVITYLIB::Network & | networkData | ||
| ) |
Adds connectivity estimation data.
| [in] | sSubject | The name of the subject. |
| [in] | sMeasurementSetName | The name of the measurement set to which the data is to be added. If it does not exist yet, it will be created. |
| [in] | networkData | The connectivity data. |
Definition at line 333 of file data3Dtreemodel.cpp.
| QList< NetworkTreeItem * > Data3DTreeModel::addConnectivityData | ( | const QString & | sSubject, |
| const QString & | sMeasurementSetName, | ||
| const QList< CONNECTIVITYLIB::Network > & | networkData | ||
| ) |
Adds a list of connectivity estimation data.
| [in] | sSubject | The name of the subject. |
| [in] | sMeasurementSetName | The name of the measurement set to which the data is to be added. If it does not exist yet, it will be created. |
| [in] | networkData | The list of connectivity data. |
Definition at line 316 of file data3Dtreemodel.cpp.
|
protected |
Adds live sensor data for interpolation with the cpu.
| [in] | sSubject | The name of the subject. |
| [in] | sMeasurementSetName | The name of the measurement set to which the data is to be added. If it does not exist yet, it will be created. |
| [in] | matSensorData | The Sensor Data. |
| [in] | tBemSurface | The Bem Surface data. |
| [in] | fiffInfo | The FiffInfo that holds all information about the sensors. |
| [in] | sDataType | The data type ("MEG" or "EEG"). |
| [in] | dCancelDist | Distances higher than this are ignored for the interpolation. |
| [in] | sInterpolationFunction | Function that computes interpolation coefficients using the distance values. |
| DigitizerSetTreeItem * Data3DTreeModel::addDigitizerData | ( | const QString & | sSubject, |
| const QString & | sMeasurementSetName, | ||
| const FIFFLIB::FiffDigPointSet & | digitizer | ||
| ) |
Adds digitizer data.
| [in] | sSubject | The name of the subject. |
| [in] | sMeasurementSetName | The name of the measurement set to which the data is to be added. If it does not exist yet, it will be created. |
| [in] | digitizer | The digitizer information. |
Definition at line 452 of file data3Dtreemodel.cpp.
| EcdDataTreeItem * Data3DTreeModel::addDipoleFitData | ( | const QString & | sSubject, |
| const QString & | sSet, | ||
| const INVERSELIB::ECDSet & | ecdSet | ||
| ) |
Adds source estimated activation data (dipole fit).
| [in] | sSubject | The name of the subject. |
| [in] | sMeasurementSetName | The name of the measurement set to which the data is to be added. If it does not exist yet, it will be created. |
| [in] | ecdSet | The ECDSet dipole data. |
Definition at line 288 of file data3Dtreemodel.cpp.
| SensorSetTreeItem * Data3DTreeModel::addEegSensorInfo | ( | const QString & | sSubject, |
| const QString & | sSensorSetName, | ||
| const QList< FIFFLIB::FiffChInfo > & | lChInfo, | ||
| const QStringList & | bads = QStringList() |
||
| ) |
Adds EEG sensor info.
| [in] | sSubject | The name of the subject. |
| [in] | sSensorSetName | The name of the sensor set to which the data is to be added. If it does not exist yet, it will be created. |
| [in] | lChInfo | The channel information used to plot the EEG channels. |
| [in] | bads | The bad channel list. |
Definition at line 418 of file data3Dtreemodel.cpp.
| 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).
| [in] | sSubject | The name of the subject. |
| [in] | sMeasurementSetName | The name of the measurement set to which the data is to be added. If it does not exist yet, it will be created. |
| [in] | forwardSolution | The forward solution information. |
Definition at line 230 of file data3Dtreemodel.cpp.
|
protected |
Adds live sensor data for interpolation with a compute shader.
| [in] | sSubject | The name of the subject. |
| [in] | sMeasurementSetName | The name of the measurement set to which the data is to be added. If it does not exist yet, it will be created. |
| [in] | matSensorData | The Sensor Data. |
| [in] | tBemSurface | The Bem Surface data. |
| [in] | fiffInfo | The FiffInfo that holds all information about the sensors. |
| [in] | sDataType | The data type ("MEG" or "EEG"). |
| [in] | dCancelDist | Distances higher than this are ignored for the interpolation. |
| [in] | sInterpolationFunction | Function that computes interpolation coefficients using the distance values. |
| 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.
| [in] | sSubject | The name of the subject. |
| [in] | sSensorSetName | The name of the sensor set to which the data is to be added. If it does not exist yet, it will be created. |
| [in] | sensor | The sensor surface information in form of a BEM model. Sensor surfaces are internally represented as MNEBem models. |
| [in] | lChInfo | The channel information used to plot the MEG channels. |
| [in] | bads | The bad channel list. |
Definition at line 386 of file data3Dtreemodel.cpp.
| 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.
| [in] | sSubject | The name of the subject. |
| [in] | sMeasurementSetName | The name of the measurement set to which the data is to be added. If it does not exist yet, it will be created. |
| [in] | matSensorData | The Sensor Data. |
| [in] | tBemSurface | The Bem Surface data. |
| [in] | fiffInfo | The FiffInfo that holds all information about the sensors. |
| [in] | sDataType | The data type ("MEG" or "EEG"). |
Definition at line 478 of file data3Dtreemodel.cpp.
| 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).
| [in] | sSubject | The name of the subject. |
| [in] | sMeasurementSetName | The name of the measurement set to which the data is to be added. If it does not exist yet, it will be created. |
| [in] | tSourceEstimate | The MNESourceEstimate. |
| [in] | tForwardSolution | The MNEForwardSolution. |
| [in] | tSurfSet | The surface set holding the left and right hemisphere surfaces. |
| [in] | tAnnotSet | The annotation set holding the left and right hemisphere annotations. |
Definition at line 239 of file data3Dtreemodel.cpp.
| QList< SourceSpaceTreeItem * > Data3DTreeModel::addSourceSpace | ( | const QString & | sSubject, |
| const QString & | sMeasurementSetName, | ||
| const MNELIB::MNESourceSpace & | sourceSpace | ||
| ) |
Adds source space brain data.
| [in] | sSubject | The name of the subject. |
| [in] | sMeasurementSetName | The name of the measurement set to which the data is to be added. If it does not exist yet, it will be created. |
| [in] | sourceSpace | The source space information. |
Definition at line 204 of file data3Dtreemodel.cpp.
|
protected |
Create a subject tree item if the item was not found. This is a convenience function.
| [in] | sSubject | The name of the subject. |
Definition at line 534 of file data3Dtreemodel.cpp.
| FsSurfaceTreeItem * Data3DTreeModel::addSurface | ( | const QString & | sSubject, |
| const QString & | sSet, | ||
| const FSLIB::Surface & | surface, | ||
| const FSLIB::Annotation & | annotation = FSLIB::Annotation() |
||
| ) |
Adds FreeSurfer brain data.
| [in] | sSubject | The name of the subject. |
| [in] | sMriSetName | The name of the MRI set to which the data is to be added. If it does not exist yet, it will be created. |
| [in] | surface | FreeSurfer surface. |
| [in] | annotation | FreeSurfer annotation. |
Definition at line 177 of file data3Dtreemodel.cpp.
| 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.
| [in] | sSubject | The name of the subject. |
| [in] | sMriSetName | The name of the MRI set to which the data is to be added. If it does not exist yet, it will be created. |
| [in] | surfaceSet | FreeSurfer surface set. |
| [in] | annotationSet | FreeSurfer annotation set. |
Definition at line 157 of file data3Dtreemodel.cpp.
| QVariant Data3DTreeModel::data | ( | const QModelIndex & | index, |
| int | role = Qt::DisplayRole |
||
| ) | const |
QStandardItemModel functions
Definition at line 101 of file data3Dtreemodel.cpp.
| QPointer< Qt3DCore::QEntity > Data3DTreeModel::getRootEntity | ( | ) |
Returns the 3D model root entity.
Definition at line 527 of file data3Dtreemodel.cpp.
|
protected |
Init the meta types
Definition at line 556 of file data3Dtreemodel.cpp.
|
protected |
The parent 3D entity for this model.
Definition at line 431 of file data3Dtreemodel.h.
|
protected |
The root item of the tree model.
Definition at line 430 of file data3Dtreemodel.h.
1.8.17