41 #include "../freesurfer/fssurfacetreeitem.h"
42 #include "../freesurfer/fsannotationtreeitem.h"
43 #include "../sourcespace/sourcespacetreeitem.h"
44 #include "../sourcedata/mnedatatreeitem.h"
67 using namespace Eigen;
68 using namespace FSLIB;
69 using namespace MNELIB;
70 using namespace DISP3DLIB;
76 HemisphereTreeItem::HemisphereTreeItem(
int iType,
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;