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

Provides a generic MeasurementTreeItem. More...

#include <measurementtreeitem.h>

Public Types

typedef QSharedPointer< MeasurementTreeItemSPtr
 
typedef QSharedPointer< const MeasurementTreeItemConstSPtr
 

Public Member Functions

 MeasurementTreeItem (int iType=Data3DTreeModelItemTypes::MeasurementItem, const QString &text="Unknown measurement")
 
QList< SourceSpaceTreeItem * > addData (const MNELIB::MNESourceSpace &tSourceSpace, Qt3DCore::QEntity *p3DEntityParent=0)
 
MneDataTreeItemaddData (const MNELIB::MNESourceEstimate &tSourceEstimate, const MNELIB::MNEForwardSolution &tForwardSolution, const FSLIB::SurfaceSet &tSurfSet, const FSLIB::AnnotationSet &tAnnotSet, Qt3DCore::QEntity *p3DEntityParent, bool bUseGPU=false)
 
SensorDataTreeItemaddData (const Eigen::MatrixXd &tSensorData, const MNELIB::MNEBemSurface &bemSurface, const FIFFLIB::FiffInfo &fiffInfo, const QString &sSensorType, Qt3DCore::QEntity *p3DEntityParent, bool bUseGPU=false)
 
EcdDataTreeItemaddData (const INVERSELIB::ECDSet &tECDSet, Qt3DCore::QEntity *p3DEntityParent=0)
 
DigitizerSetTreeItemaddData (const FIFFLIB::FiffDigPointSet &tDigitizer, Qt3DCore::QEntity *p3DEntityParent=0)
 
NetworkTreeItemaddData (const CONNECTIVITYLIB::Network &tNetworkData, Qt3DCore::QEntity *p3DEntityParent=0)
 
- Public Member Functions inherited from DISP3DLIB::AbstractTreeItem
 AbstractTreeItem (int iType=Data3DTreeModelItemTypes::UnknownItem, const QString &text="")
 
void setData (const QVariant &value, int role=Qt::UserRole+1)
 
int type () const
 
QList< QStandardItem * > findChildren (int type)
 
QList< QStandardItem * > findChildren (const QString &text)
 
AbstractTreeItemoperator<< (AbstractTreeItem *newItem)
 
AbstractTreeItemoperator<< (AbstractTreeItem &newItem)
 

Protected Member Functions

void initItem ()
 
void onSourceColorChanged (const QVariant &vertColors)
 
- Protected Member Functions inherited from DISP3DLIB::AbstractTreeItem
virtual void onCheckStateChanged (const Qt::CheckState &checkState)
 

Protected Attributes

QPointer< MneDataTreeItemm_pMneDataTreeItem
 
QPointer< SensorDataTreeItemm_pEEGSensorDataTreeItem
 
QPointer< SensorDataTreeItemm_pMEGSensorDataTreeItem
 
QPointer< NetworkTreeItemm_pNetworkTreeItem
 
QPointer< EcdDataTreeItemm_EcdDataTreeItem
 
- Protected Attributes inherited from DISP3DLIB::AbstractTreeItem
int m_iType
 
Qt::CheckState m_checkStateOld
 

Additional Inherited Members

- Signals inherited from DISP3DLIB::AbstractTreeItem
void checkStateChanged (const Qt::CheckState &checkState)
 
- Static Public Member Functions inherited from DISP3DLIB::AbstractTreeItem
static void addItemWithDescription (QStandardItem *pItemParent, QStandardItem *pItemAdd)
 

Detailed Description

Provides a generic MeasurementTreeItem.

MeasurementTreeItem provides a generic brain tree item to hold of brain data (hemi, vertices, tris, etc.) from different sources (FreeSurfer, etc.).

Definition at line 114 of file measurementtreeitem.h.

Inheritance diagram for DISP3DLIB::MeasurementTreeItem:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

Const shared pointer type for MeasurementTreeItem class.

Definition at line 120 of file measurementtreeitem.h.

◆ SPtr

Shared pointer type for MeasurementTreeItem class.

Definition at line 119 of file measurementtreeitem.h.

Constructor & Destructor Documentation

◆ MeasurementTreeItem()

MeasurementTreeItem::MeasurementTreeItem ( int  iType = Data3DTreeModelItemTypes::MeasurementItem,
const QString &  text = "Unknown measurement" 
)
explicit

Default constructor.

Parameters
[in]iTypeThe type of the item. See types.h for declaration and definition.
[in]textThe text of this item. This is also by default the displayed name of the item in a view.

Definition at line 97 of file measurementtreeitem.cpp.

Member Function Documentation

◆ addData() [1/6]

QList< SourceSpaceTreeItem * > MeasurementTreeItem::addData ( const MNELIB::MNESourceSpace tSourceSpace,
Qt3DCore::QEntity *  p3DEntityParent = 0 
)

Adds source space data to this item.

Parameters
[in]tSourceSpaceThe source space data.
[in]p3DEntityParentThe Qt3D entity parent of the new item.
Returns
Returns a pointer to the added tree item. Default is a NULL pointer if no item was added.

Definition at line 116 of file measurementtreeitem.cpp.

◆ addData() [2/6]

MneDataTreeItem * MeasurementTreeItem::addData ( const MNELIB::MNESourceEstimate tSourceEstimate,
const MNELIB::MNEForwardSolution tForwardSolution,
const FSLIB::SurfaceSet tSurfSet,
const FSLIB::AnnotationSet tAnnotSet,
Qt3DCore::QEntity *  p3DEntityParent,
bool  bUseGPU = false 
)

Adds source estimated activation data (MNE, RTC-MUSIC) to this item.

Parameters
[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.
[in]p3DEntityParentPointer to the QEntity parent.
[in]bUseGPUWhether to use GPU support for visualizing real-time data.
Returns
Returns a pointer to the added tree item. Default is a NULL pointer if no item was added.

Definition at line 158 of file measurementtreeitem.cpp.

◆ addData() [3/6]

SensorDataTreeItem* DISP3DLIB::MeasurementTreeItem::addData ( const Eigen::MatrixXd &  tSensorData,
const MNELIB::MNEBemSurface bemSurface,
const FIFFLIB::FiffInfo fiffInfo,
const QString &  sSensorType,
Qt3DCore::QEntity *  p3DEntityParent,
bool  bUseGPU = false 
)

Adds interpolated activation data to the csh version of this item.

Parameters
[in]tSensorDataThe SensorData.
[in]bemSurfaceHolds all Bem data used in this item.
[in]fiffInfoHolds all information needed about the sensors.
[in]sSensorTypeName of the sensor type EEG or MEG.
[in]p3DEntityParentPointer to the QEntity parent.
[in]bUseGPUWhether to use GPU support for visualizing real-time data.
Returns
Returns a pointer to the added tree item. (Default would be a NULL pointer if no item was added.).

◆ addData() [4/6]

EcdDataTreeItem * MeasurementTreeItem::addData ( const INVERSELIB::ECDSet tECDSet,
Qt3DCore::QEntity *  p3DEntityParent = 0 
)

Adds source estimated activation data (dipole fit) to this item.

Parameters
[in]tECDSetThe ECDSet dipole data.
[in]p3DEntityParentThe Qt3D entity parent of the new item.
Returns
Returns a pointer to the added tree item. Default is a NULL pointer if no item was added.

Definition at line 267 of file measurementtreeitem.cpp.

◆ addData() [5/6]

DigitizerSetTreeItem * MeasurementTreeItem::addData ( const FIFFLIB::FiffDigPointSet tDigitizer,
Qt3DCore::QEntity *  p3DEntityParent = 0 
)

Adds digitizer data to this item.

Parameters
[in]digitizerkindThe kind of the digitizer data.
[in]tDigitizerThe digitizer data.
[in]p3DEntityParentThe Qt3D entity parent of the new item.
Returns
Returns a pointer to the added tree item. Default is a NULL pointer if no item was added.

Definition at line 301 of file measurementtreeitem.cpp.

◆ addData() [6/6]

NetworkTreeItem * MeasurementTreeItem::addData ( const CONNECTIVITYLIB::Network tNetworkData,
Qt3DCore::QEntity *  p3DEntityParent = 0 
)

Adds connectivity estimation data.

Parameters
[in]tNetworkDataThe connectivity data.
Returns
Returns a pointer to the added tree item. Default is a NULL pointer if no item was added.

Definition at line 335 of file measurementtreeitem.cpp.

◆ initItem()

void MeasurementTreeItem::initItem ( )
protectedvirtual

AbstractTreeItem functions

Reimplemented from DISP3DLIB::AbstractTreeItem.

Definition at line 106 of file measurementtreeitem.cpp.

◆ onSourceColorChanged()

void DISP3DLIB::MeasurementTreeItem::onSourceColorChanged ( const QVariant &  vertColors)
protected

Call this function whenever new colors for the activation data plotting are available: source level.

Parameters
[in]vertColorsThe color values for each estimated source for left and right hemisphere.

Member Data Documentation

◆ m_EcdDataTreeItem

QPointer<EcdDataTreeItem> DISP3DLIB::MeasurementTreeItem::m_EcdDataTreeItem
protected

The rt dipole fit data item of this item.

Definition at line 242 of file measurementtreeitem.h.

◆ m_pEEGSensorDataTreeItem

QPointer<SensorDataTreeItem> DISP3DLIB::MeasurementTreeItem::m_pEEGSensorDataTreeItem
protected

The rt sensor EEG data item of this item.

Definition at line 237 of file measurementtreeitem.h.

◆ m_pMEGSensorDataTreeItem

QPointer<SensorDataTreeItem> DISP3DLIB::MeasurementTreeItem::m_pMEGSensorDataTreeItem
protected

The rt sensor MEG data item of this item.

Definition at line 238 of file measurementtreeitem.h.

◆ m_pMneDataTreeItem

QPointer<MneDataTreeItem> DISP3DLIB::MeasurementTreeItem::m_pMneDataTreeItem
protected

The rt source loc data item of this item.

Definition at line 235 of file measurementtreeitem.h.

◆ m_pNetworkTreeItem

QPointer<NetworkTreeItem> DISP3DLIB::MeasurementTreeItem::m_pNetworkTreeItem
protected

The rt connectivity data item of this item.

Definition at line 240 of file measurementtreeitem.h.


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