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

Provides a generic SensorSetTreeItem. More...

#include <sensorsettreeitem.h>

Public Types

typedef QSharedPointer< SensorSetTreeItemSPtr
 
typedef QSharedPointer< const SensorSetTreeItemConstSPtr
 

Public Member Functions

 SensorSetTreeItem (int iType=Data3DTreeModelItemTypes::BemItem, const QString &text="")
 
void addData (const MNELIB::MNEBem &tSensor, const QList< FIFFLIB::FiffChInfo > &lChInfo, const QString &sDataType, const QStringList &bads=QStringList(), Qt3DCore::QEntity *p3DEntityParent=0)
 
virtual void setTransform (const Qt3DCore::QTransform &transform)
 
virtual void setTransform (const FIFFLIB::FiffCoordTrans &transform, bool bApplyInverse=false)
 
virtual void applyTransform (const Qt3DCore::QTransform &transform)
 
virtual void applyTransform (const FIFFLIB::FiffCoordTrans &transform, bool bApplyInverse=false)
 
- 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 ()
 
- Protected Member Functions inherited from DISP3DLIB::AbstractTreeItem
virtual void onCheckStateChanged (const Qt::CheckState &checkState)
 

Protected Attributes

QPointer< Renderable3DEntitym_pRenderable3DEntity
 
- 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 SensorSetTreeItem.

SensorSetTreeItem provides a tree item to sensor information: surface, sensor locations, etc.

Definition at line 92 of file sensorsettreeitem.h.

Inheritance diagram for DISP3DLIB::SensorSetTreeItem:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

Const shared pointer type for SensorSetTreeItem class.

Definition at line 98 of file sensorsettreeitem.h.

◆ SPtr

Shared pointer type for SensorSetTreeItem class.

Definition at line 97 of file sensorsettreeitem.h.

Constructor & Destructor Documentation

◆ SensorSetTreeItem()

SensorSetTreeItem::SensorSetTreeItem ( int  iType = Data3DTreeModelItemTypes::BemItem,
const QString &  text = "" 
)
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 71 of file sensorsettreeitem.cpp.

Member Function Documentation

◆ addData()

void SensorSetTreeItem::addData ( const MNELIB::MNEBem tSensor,
const QList< FIFFLIB::FiffChInfo > &  lChInfo,
const QString &  sDataType,
const QStringList &  bads = QStringList(),
Qt3DCore::QEntity *  p3DEntityParent = 0 
)

Adds FreeSurfer data based on surfaces and annotation sets to this item.

Parameters
[in]tSensorThe BEM data.
[in]lChInfoThe channel information used to plot the MEG channels.
[in]sDataTypeThe data type: EEG, MEG.
[in]badsThe bad channel list.
[in]p3DEntityParentThe Qt3D entity parent of the new item.

Definition at line 89 of file sensorsettreeitem.cpp.

◆ applyTransform() [1/2]

void SensorSetTreeItem::applyTransform ( const Qt3DCore::QTransform &  transform)
virtual

Applies a transformation o ntop of the present one.

Parameters
[in]transformThe new entity's transform.

Definition at line 177 of file sensorsettreeitem.cpp.

◆ applyTransform() [2/2]

void SensorSetTreeItem::applyTransform ( const FIFFLIB::FiffCoordTrans transform,
bool  bApplyInverse = false 
)
virtual

Applies a transformation o ntop of the present one.

Parameters
[in]transformThe new entity's transform.
[in]bApplyInverseWhether to apply the inverse. False by default.

Definition at line 186 of file sensorsettreeitem.cpp.

◆ initItem()

void SensorSetTreeItem::initItem ( )
protectedvirtual

AbstractTreeItem functions

Reimplemented from DISP3DLIB::AbstractTreeItem.

Definition at line 79 of file sensorsettreeitem.cpp.

◆ setTransform() [1/2]

void SensorSetTreeItem::setTransform ( const Qt3DCore::QTransform &  transform)
virtual

Sets the entity's transformation. This will clear the old transformation.

Parameters
[in]transformThe new entity's transform.

Definition at line 159 of file sensorsettreeitem.cpp.

◆ setTransform() [2/2]

void SensorSetTreeItem::setTransform ( const FIFFLIB::FiffCoordTrans transform,
bool  bApplyInverse = false 
)
virtual

Sets the entity's transformation. This will clear the old transformation.

Parameters
[in]transformThe new entity's transform.
[in]bApplyInverseWhether to apply the inverse. False by default.

Definition at line 168 of file sensorsettreeitem.cpp.

Member Data Documentation

◆ m_pRenderable3DEntity

QPointer<Renderable3DEntity> DISP3DLIB::SensorSetTreeItem::m_pRenderable3DEntity
protected

This item holds all renderable items.

Definition at line 166 of file sensorsettreeitem.h.


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