41#include "../freesurfer/fssurfacetreeitem.h"
42#include "../freesurfer/fsannotationtreeitem.h"
43#include "../sourcespace/sourcespacetreeitem.h"
44#include "../sourcedata/mnedatatreeitem.h"
69using namespace MNELIB;
70using namespace DISP3DLIB;
87 this->setEditable(
false);
88 this->setCheckable(
true);
89 this->setCheckState(Qt::Checked);
90 this->setToolTip(
"Brain hemisphere item");
97 Qt3DCore::QEntity* p3DEntityParent)
100 switch (tSurface.
hemi()) {
102 this->setText(
"Left hemisphere");
105 this->setText(
"Right hemisphere");
108 this->setText(
"Unknown hemisphere");
113 data.setValue(tSurface.
hemi());
115 this->
setData(data, Data3DTreeModelItemRoles::SurfaceHemi);
120 Data3DTreeModelItemTypes::SurfaceItem,
"Surface");
122 QList<QStandardItem*> list;
123 list << pSurfaceItem;
124 list <<
new QStandardItem(pSurfaceItem->toolTip());
125 this->appendRow(list);
127 pSurfaceItem->
addData(tSurface);
138 list <<
new QStandardItem(pAnnotItem->toolTip());
139 this->appendRow(list);
141 pAnnotItem->
addData(tSurface, tAnnotation);
150 Qt3DCore::QEntity* p3DEntityParent)
155 switch (tHemisphere.
id) {
157 this->setText(
"Left hemisphere");
161 this->setText(
"Right hemisphere");
165 this->setText(
"Unknown hemisphere");
170 this->
setData(data, Data3DTreeModelItemRoles::SurfaceHemi);
175 QList<QStandardItem*> list;
176 list << pSourceSpaceItem;
177 list <<
new QStandardItem(pSourceSpaceItem->toolTip());
178 this->appendRow(list);
180 pSourceSpaceItem->
addData(tHemisphere);
182 return pSourceSpaceItem;
MNEForwardSolution class declaration, which provides the forward solution including the source space ...
MNESourceEstimate class declaration.
AnnotationSet class declaration.
SurfaceSet class declaration.
HemisphereTreeItem class declaration.
Provides the basic tree item.
void setData(const QVariant &value, int role=Qt::UserRole+1)
Provides a generic brain tree item.
void annotationVisibiltyChanged(bool isVisible)
void addData(const FSLIB::Surface &tSurface, const FSLIB::Annotation &tAnnotation)
Provides a generic brain tree item.
void addData(const FSLIB::Surface &tSurface)
void onAnnotationVisibilityChanged(bool isVisible)
HemisphereTreeItem(int iType=Data3DTreeModelItemTypes::HemisphereItem, const QString &text="Unknown")
FsSurfaceTreeItem * addData(const FSLIB::Surface &tSurface, const FSLIB::Annotation &tAnnotation, Qt3DCore::QEntity *p3DEntityParent=0)
Provides a generic brain tree item.
void addData(const MNELIB::MNEHemisphere &tHemisphere)
Hemisphere provides geometry information.