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

BemTreeItem provides a tree item to hold BEM models. More...

#include <bemtreeitem.h>

Public Types

typedef QSharedPointer< BemTreeItemSPtr
 
typedef QSharedPointer< const BemTreeItemConstSPtr
 

Public Member Functions

 BemTreeItem (int iType=Data3DTreeModelItemTypes::BemItem, const QString &text="")
 
void addData (const MNELIB::MNEBem &tBem, 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

BemTreeItem provides a tree item to hold BEM models.

BemTreeItem provides a tree item to hold BEM models.

Definition at line 88 of file bemtreeitem.h.

Inheritance diagram for DISP3DLIB::BemTreeItem:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

typedef QSharedPointer<const BemTreeItem> DISP3DLIB::BemTreeItem::ConstSPtr

Const shared pointer type for BemTreeItem class.

Definition at line 94 of file bemtreeitem.h.

◆ SPtr

typedef QSharedPointer<BemTreeItem> DISP3DLIB::BemTreeItem::SPtr

Shared pointer type for BemTreeItem class.

Definition at line 93 of file bemtreeitem.h.

Constructor & Destructor Documentation

◆ BemTreeItem()

BemTreeItem::BemTreeItem ( 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 69 of file bemtreeitem.cpp.

Member Function Documentation

◆ addData()

void BemTreeItem::addData ( const MNELIB::MNEBem tBem,
Qt3DCore::QEntity *  p3DEntityParent = 0 
)

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

Parameters
[in]tBemThe BEM data.
[in]p3DEntityParentThe Qt3D entity parent of the new item.

Definition at line 125 of file bemtreeitem.cpp.

◆ applyTransform() [1/2]

void BemTreeItem::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 96 of file bemtreeitem.cpp.

◆ applyTransform() [2/2]

void BemTreeItem::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 105 of file bemtreeitem.cpp.

◆ initItem()

void BemTreeItem::initItem ( )
protectedvirtual

AbstractTreeItem functions

Reimplemented from DISP3DLIB::AbstractTreeItem.

Definition at line 115 of file bemtreeitem.cpp.

◆ setTransform() [1/2]

void BemTreeItem::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 77 of file bemtreeitem.cpp.

◆ setTransform() [2/2]

void BemTreeItem::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 86 of file bemtreeitem.cpp.

Member Data Documentation

◆ m_pRenderable3DEntity

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

This item holds all renderable digitizer items.

Definition at line 158 of file bemtreeitem.h.


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