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

Provides a generic brain tree item. More...

#include <hemispheretreeitem.h>

Public Types

typedef QSharedPointer< HemisphereTreeItemSPtr
 
typedef QSharedPointer< const HemisphereTreeItemConstSPtr
 

Public Member Functions

 HemisphereTreeItem (int iType=Data3DTreeModelItemTypes::HemisphereItem, const QString &text="Unknown")
 
FsSurfaceTreeItemaddData (const FSLIB::Surface &tSurface, const FSLIB::Annotation &tAnnotation, Qt3DCore::QEntity *p3DEntityParent=0)
 
SourceSpaceTreeItemaddData (const MNELIB::MNEHemisphere &tHemisphere, 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 brain tree item.

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

Definition at line 95 of file hemispheretreeitem.h.

Inheritance diagram for DISP3DLIB::HemisphereTreeItem:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

Const shared pointer type for HemisphereTreeItem class.

Definition at line 101 of file hemispheretreeitem.h.

◆ SPtr

Shared pointer type for HemisphereTreeItem class.

Definition at line 100 of file hemispheretreeitem.h.

Constructor & Destructor Documentation

◆ HemisphereTreeItem()

HemisphereTreeItem::HemisphereTreeItem ( int  iType = Data3DTreeModelItemTypes::HemisphereItem,
const QString &  text = "Unknown" 
)
explicit

Default constructor from single surface.

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 76 of file hemispheretreeitem.cpp.

Member Function Documentation

◆ addData() [1/2]

FsSurfaceTreeItem * HemisphereTreeItem::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.

Definition at line 95 of file hemispheretreeitem.cpp.

◆ addData() [2/2]

SourceSpaceTreeItem * HemisphereTreeItem::addData ( const MNELIB::MNEHemisphere tHemisphere,
Qt3DCore::QEntity *  p3DEntityParent = 0 
)

Adds source space information.

Parameters
[in]tHemisphereThe MNEHemisphere.
[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 149 of file hemispheretreeitem.cpp.

◆ initItem()

void HemisphereTreeItem::initItem ( )
protectedvirtual

AbstractTreeItem functions

Reimplemented from DISP3DLIB::AbstractTreeItem.

Definition at line 85 of file hemispheretreeitem.cpp.


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