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

Provides a generic brain tree item. More...

#include <fsannotationtreeitem.h>

Public Types

typedef QSharedPointer< FsAnnotationTreeItemSPtr
 
typedef QSharedPointer< const FsAnnotationTreeItemConstSPtr
 

Signals

void annotationVisibiltyChanged (bool isVisible)
 
- Signals inherited from DISP3DLIB::AbstractTreeItem
void checkStateChanged (const Qt::CheckState &checkState)
 

Public Member Functions

 FsAnnotationTreeItem (int iType=Data3DTreeModelItemTypes::AnnotationItem, const QString &text="Annotation")
 
void addData (const FSLIB::Surface &tSurface, const FSLIB::Annotation &tAnnotation)
 
- 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 ()
 
virtual void onCheckStateChanged (const Qt::CheckState &checkState)
 

Additional Inherited Members

- 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.

FsAnnotationTreeItem provides a generic item to hold information about brain annotation information.

Definition at line 83 of file fsannotationtreeitem.h.

Inheritance diagram for DISP3DLIB::FsAnnotationTreeItem:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

Const shared pointer type for FsAnnotationTreeItem class.

Definition at line 89 of file fsannotationtreeitem.h.

◆ SPtr

Shared pointer type for FsAnnotationTreeItem class.

Definition at line 88 of file fsannotationtreeitem.h.

Constructor & Destructor Documentation

◆ FsAnnotationTreeItem()

FsAnnotationTreeItem::FsAnnotationTreeItem ( int  iType = Data3DTreeModelItemTypes::AnnotationItem,
const QString &  text = "Annotation" 
)
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 fsannotationtreeitem.cpp.

Member Function Documentation

◆ addData()

void FsAnnotationTreeItem::addData ( const FSLIB::Surface tSurface,
const FSLIB::Annotation tAnnotation 
)

Adds FreeSurfer data based on annotation information to this item.

Parameters
[in]tSurfaceFreeSurfer surface.
[in]tAnnotationFreeSurfer annotation.

Definition at line 84 of file fsannotationtreeitem.cpp.

◆ annotationVisibiltyChanged

void DISP3DLIB::FsAnnotationTreeItem::annotationVisibiltyChanged ( bool  isVisible)
signal

Emit this signal whenever the visibilty of the annotation set was changed.

Parameters
[in]isVisibleThe visibility flag.

◆ initItem()

void FsAnnotationTreeItem::initItem ( )
protectedvirtual

AbstractTreeItem functions

Reimplemented from DISP3DLIB::AbstractTreeItem.

Definition at line 74 of file fsannotationtreeitem.cpp.

◆ onCheckStateChanged()

void FsAnnotationTreeItem::onCheckStateChanged ( const Qt::CheckState &  checkState)
protectedvirtual

Call this function whenever the check box of this item was checked.

Parameters
[in]checkStateThe current checkstate.

Reimplemented from DISP3DLIB::AbstractTreeItem.

Definition at line 143 of file fsannotationtreeitem.cpp.


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