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

SensorPositionTreeItem provides a tree item to visualize sensor position data. More...

#include <sensorpositiontreeitem.h>

Public Types

typedef QSharedPointer< SensorPositionTreeItemSPtr
 
typedef QSharedPointer< const SensorPositionTreeItemConstSPtr
 
- Public Types inherited from DISP3DLIB::Renderable3DEntity
typedef QSharedPointer< Renderable3DEntitySPtr
 
typedef QSharedPointer< const Renderable3DEntityConstSPtr
 

Public Member Functions

 SensorPositionTreeItem (Qt3DCore::QEntity *p3DEntityParent=0, int iType=Data3DTreeModelItemTypes::SensorPositionItem, const QString &text="Sensor Position")
 
void addData (const QList< FIFFLIB::FiffChInfo > &lChInfo, const QString &sDataType, const QStringList &bads=QStringList())
 
- Public Member Functions inherited from DISP3DLIB::Abstract3DTreeItem
 Abstract3DTreeItem (QEntity *p3DEntityParent=0, 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)
 
Abstract3DTreeItemoperator<< (Abstract3DTreeItem *newItem)
 
Abstract3DTreeItemoperator<< (Abstract3DTreeItem &newItem)
 
void setAlpha (float fAlpha)
 
- Public Member Functions inherited from DISP3DLIB::Renderable3DEntity
 Renderable3DEntity (Qt3DCore::QEntity *parent=0)
 
virtual ~Renderable3DEntity ()
 
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)
 
virtual float scaleValue () const
 
virtual float rotX () const
 
virtual float rotY () const
 
virtual float rotZ () const
 
virtual QVector3D position () const
 
virtual void applyRotX (float rotX)
 
virtual void setRotX (float rotX)
 
virtual void applyRotY (float rotY)
 
virtual void setRotY (float rotY)
 
virtual void applyRotZ (float rotZ)
 
virtual void setRotZ (float rotZ)
 
virtual void applyPosition (const QVector3D &position)
 
virtual void setPosition (const QVector3D &position)
 
virtual void applyScale (float scale)
 
virtual void setScale (float scale)
 
virtual void setVisible (bool state)
 
virtual void setMaterialParameter (const QVariant &data, const QString &sParameterName)
 
virtual QVariant getMaterialParameter (const QString &sParameterName)
 

Protected Member Functions

void plotMEGSensors (const QList< FIFFLIB::FiffChInfo > &lChInfo, const QStringList &bads=QStringList())
 
void plotEEGSensors (const QList< FIFFLIB::FiffChInfo > &lChInfo, const QStringList &bads=QStringList())
 
void initItem ()
 
- Protected Member Functions inherited from DISP3DLIB::Abstract3DTreeItem
virtual void onCheckStateChanged (const Qt::CheckState &checkState)
 
virtual void onTranslationXChanged (const QVariant &fTransX)
 
virtual void onTranslationYChanged (const QVariant &fTransY)
 
virtual void onTranslationZChanged (const QVariant &fTransZ)
 
virtual void onScaleChanged (const QVariant &fScale)
 
virtual void onColorChanged (const QVariant &color)
 
virtual void onAlphaChanged (const QVariant &fAlpha)
 
- Protected Member Functions inherited from DISP3DLIB::Renderable3DEntity
virtual void setMaterialParameterRecursive (QObject *pObject, const QVariant &data, const QString &sParameterName)
 
virtual QPair< bool, QVariant > getMaterialParameterRecursive (QObject *pObject, const QString &sParameterName)
 

Protected Attributes

QPointer< QEntity > m_pMEGSensorEntity
 
QPointer< GeometryMultiplierm_pMEGSensors
 
QSharedPointer< Qt3DExtras::QCuboidGeometry > m_pMEGSensorGeometry
 
QPointer< QEntity > m_pEEGSensorEntity
 
QPointer< GeometryMultiplierm_pEEGSensors
 
QSharedPointer< Qt3DExtras::QSphereGeometry > m_pEEGSensorGeometry
 
- Protected Attributes inherited from DISP3DLIB::Abstract3DTreeItem
int m_iType
 
QPointer< MetaTreeItemm_pItemTransformationOptions
 
QPointer< MetaTreeItemm_pItemAppearanceOptions
 
- Protected Attributes inherited from DISP3DLIB::Renderable3DEntity
QPointer< Qt3DCore::QTransform > m_pTransform
 
float m_fScale
 
float m_fRotX
 
float m_fRotY
 
float m_fRotZ
 
QVector3D m_position
 

Additional Inherited Members

- Signals inherited from DISP3DLIB::Abstract3DTreeItem
void checkStateChanged (const Qt::CheckState &checkState)
 
- Signals inherited from DISP3DLIB::Renderable3DEntity
void scaleChanged (float scale)
 
void rotXChanged (float rotX)
 
void rotYChanged (float rotY)
 
void rotZChanged (float rotZ)
 
void positionChanged (QVector3D position)
 
- Static Public Member Functions inherited from DISP3DLIB::Abstract3DTreeItem
static Eigen::MatrixX4f createVertColor (int numVert, const QColor &color=QColor(0, 49, 69))
 
- Properties inherited from DISP3DLIB::Renderable3DEntity
float scale
 
float rotX
 
float rotY
 
float rotZ
 
QVector3D position
 

Detailed Description

SensorPositionTreeItem provides a tree item to visualize sensor position data.

SensorPositionTreeItem provides a tree item to visualize sensor position data.

Definition at line 92 of file sensorpositiontreeitem.h.

Inheritance diagram for DISP3DLIB::SensorPositionTreeItem:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

Const shared pointer type for SensorPositionTreeItem class.

Definition at line 98 of file sensorpositiontreeitem.h.

◆ SPtr

Shared pointer type for SensorPositionTreeItem class.

Definition at line 97 of file sensorpositiontreeitem.h.

Constructor & Destructor Documentation

◆ SensorPositionTreeItem()

SensorPositionTreeItem::SensorPositionTreeItem ( Qt3DCore::QEntity *  p3DEntityParent = 0,
int  iType = Data3DTreeModelItemTypes::SensorPositionItem,
const QString &  text = "Sensor Position" 
)
explicit

Default constructor.

Parameters
[in]p3DEntityParentThe parent 3D entity.
[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 73 of file sensorpositiontreeitem.cpp.

Member Function Documentation

◆ addData()

void SensorPositionTreeItem::addData ( const QList< FIFFLIB::FiffChInfo > &  lChInfo,
const QString &  sDataType,
const QStringList &  bads = QStringList() 
)

Adds FreeSurfer data based on surface and annotation data to this item.

Parameters
[in]lChInfoThe channel information used to plot the MEG channels.
[in]sDataTypeThe data type: EEG, MEG.
[in]badsThe bad channel list.

Definition at line 91 of file sensorpositiontreeitem.cpp.

◆ initItem()

void SensorPositionTreeItem::initItem ( )
protectedvirtual

AbstractTreeItem functions

Reimplemented from DISP3DLIB::Abstract3DTreeItem.

Definition at line 81 of file sensorpositiontreeitem.cpp.

◆ plotEEGSensors()

void SensorPositionTreeItem::plotEEGSensors ( const QList< FIFFLIB::FiffChInfo > &  lChInfo,
const QStringList &  bads = QStringList() 
)
protected

Plots the EEG sensors.

Parameters
[in]lChInfoThe channel information used to plot the EEG channels.
[in]badsThe bad channel list.

Definition at line 188 of file sensorpositiontreeitem.cpp.

◆ plotMEGSensors()

void SensorPositionTreeItem::plotMEGSensors ( const QList< FIFFLIB::FiffChInfo > &  lChInfo,
const QStringList &  bads = QStringList() 
)
protected

Plots the MEG sensors.

Parameters
[in]lChInfoThe channel information used to plot the MEG channels.
[in]badsThe bad channel list.

Definition at line 104 of file sensorpositiontreeitem.cpp.

Member Data Documentation

◆ m_pEEGSensorEntity

QPointer<QEntity> DISP3DLIB::SensorPositionTreeItem::m_pEEGSensorEntity
protected

The EEG sensor entity.

Definition at line 155 of file sensorpositiontreeitem.h.

◆ m_pEEGSensorGeometry

QSharedPointer<Qt3DExtras::QSphereGeometry> DISP3DLIB::SensorPositionTreeItem::m_pEEGSensorGeometry
protected

The EEG sensor geometry.

Definition at line 157 of file sensorpositiontreeitem.h.

◆ m_pEEGSensors

QPointer<GeometryMultiplier> DISP3DLIB::SensorPositionTreeItem::m_pEEGSensors
protected

The EEG sensors.

Definition at line 156 of file sensorpositiontreeitem.h.

◆ m_pMEGSensorEntity

QPointer<QEntity> DISP3DLIB::SensorPositionTreeItem::m_pMEGSensorEntity
protected

The MEG sensor entity.

Definition at line 151 of file sensorpositiontreeitem.h.

◆ m_pMEGSensorGeometry

QSharedPointer<Qt3DExtras::QCuboidGeometry> DISP3DLIB::SensorPositionTreeItem::m_pMEGSensorGeometry
protected

The MEG sensor geometry.

Definition at line 153 of file sensorpositiontreeitem.h.

◆ m_pMEGSensors

QPointer<GeometryMultiplier> DISP3DLIB::SensorPositionTreeItem::m_pMEGSensors
protected

The MEG sensors.

Definition at line 152 of file sensorpositiontreeitem.h.


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