40 #include "../freesurfer/fsannotationtreeitem.h"
41 #include "../freesurfer/fssurfacetreeitem.h"
42 #include "../hemisphere/hemispheretreeitem.h"
59 using namespace FSLIB;
60 using namespace DISP3DLIB;
66 MriTreeItem::MriTreeItem(
int iType,
77 this->setEditable(
false);
78 this->setCheckable(
true);
79 this->setCheckState(Qt::Checked);
80 this->setToolTip(
"MRI item");
87 Qt3DCore::QEntity* p3DEntityParent)
90 QList<FsSurfaceTreeItem*> returnItemList;
93 for(
int i = 0; i < tSurfaceSet.
size(); ++i) {
94 if(i < tAnnotationSet.
size()) {
95 returnItemList.append(
addData(tSurfaceSet[i], tAnnotationSet[i], p3DEntityParent));
101 return returnItemList;
108 Qt3DCore::QEntity* p3DEntityParent)
113 QList<QStandardItem*> itemList = this->
findChildren(Data3DTreeModelItemTypes::HemisphereItem);
115 bool hemiItemFound =
false;
118 for(
int j = 0; j < itemList.size(); ++j) {
120 if(pHemiItem->data(Data3DTreeModelItemRoles::SurfaceHemi).toInt() == tSurface.
hemi()) {
121 hemiItemFound =
true;
123 if(tAnnotation.
hemi() == tSurface.
hemi()) {
124 pReturnItem = pHemiItem->
addData(tSurface, tAnnotation, p3DEntityParent);
136 if(tAnnotation.
hemi() == tSurface.
hemi()) {
137 pReturnItem = pHemiItem->
addData(tSurface, tAnnotation, p3DEntityParent);
142 QList<QStandardItem*> list;
144 list <<
new QStandardItem(pHemiItem->toolTip());
145 this->appendRow(list);