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

Provides a generic MriTreeItem. More...

#include <mritreeitem.h>

Public Types

typedef QSharedPointer< MriTreeItemSPtr
 
typedef QSharedPointer< const MriTreeItemConstSPtr
 

Public Member Functions

 MriTreeItem (int iType=Data3DTreeModelItemTypes::MriItem, const QString &text="MRI")
 
QList< FsSurfaceTreeItem * > addData (const FSLIB::SurfaceSet &tSurfaceSet, const FSLIB::AnnotationSet &tAnnotationSet, Qt3DCore::QEntity *p3DEntityParent=0)
 
FsSurfaceTreeItemaddData (const FSLIB::Surface &tSurface, const FSLIB::Annotation &tAnnotation, 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 ()
 
- Protected Member Functions inherited from DISP3DLIB::AbstractTreeItem
virtual void onCheckStateChanged (const Qt::CheckState &checkState)
 

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)
 
- Protected Attributes inherited from DISP3DLIB::AbstractTreeItem
int m_iType
 
Qt::CheckState m_checkStateOld
 

Detailed Description

Provides a generic MriTreeItem.

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

Definition at line 92 of file mritreeitem.h.

Inheritance diagram for DISP3DLIB::MriTreeItem:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

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

Const shared pointer type for MriTreeItem class.

Definition at line 98 of file mritreeitem.h.

◆ SPtr

typedef QSharedPointer<MriTreeItem> DISP3DLIB::MriTreeItem::SPtr

Shared pointer type for MriTreeItem class.

Definition at line 97 of file mritreeitem.h.

Constructor & Destructor Documentation

◆ MriTreeItem()

MriTreeItem::MriTreeItem ( int  iType = Data3DTreeModelItemTypes::MriItem,
const QString &  text = "MRI" 
)
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 66 of file mritreeitem.cpp.

Member Function Documentation

◆ addData() [1/2]

QList< FsSurfaceTreeItem * > MriTreeItem::addData ( const FSLIB::SurfaceSet tSurfaceSet,
const FSLIB::AnnotationSet tAnnotationSet,
Qt3DCore::QEntity *  p3DEntityParent = 0 
)

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

Parameters
[in]tSurfaceSetFreeSurfer surface set.
[in]tAnnotationSetFreeSurfer annotation set.
[in]p3DEntityParentThe Qt3D entity parent of the new item.
Returns
Returns a QList with the added surface tree items. The ordering. of the list hereby corresponds to the ordering of the input surface set. The list is empty if no item was added.

Definition at line 85 of file mritreeitem.cpp.

◆ addData() [2/2]

FsSurfaceTreeItem * MriTreeItem::addData ( const FSLIB::Surface tSurface,
const FSLIB::Annotation tAnnotation,
Qt3DCore::QEntity *  p3DEntityParent = 0 
)

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

Parameters
[in]tSurfaceFreeSurfer surface.
[in]tAnnotationFreeSurfer annotation.
[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 106 of file mritreeitem.cpp.

◆ initItem()

void MriTreeItem::initItem ( )
protectedvirtual

AbstractTreeItem functions

Reimplemented from DISP3DLIB::AbstractTreeItem.

Definition at line 75 of file mritreeitem.cpp.


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