43 #include "../../3dhelpers/renderable3Dentity.h"
62 using namespace FSLIB;
63 using namespace MNELIB;
64 using namespace DISP3DLIB;
65 using namespace FIFFLIB;
71 SensorSetTreeItem::SensorSetTreeItem(
int iType,
const QString& text)
81 this->setEditable(
false);
82 this->setCheckable(
true);
83 this->setCheckState(Qt::Checked);
84 this->setToolTip(
"Sensor item");
90 const QList<FiffChInfo>& lChInfo,
91 const QString& sDataType,
92 const QStringList& bads,
93 Qt3DCore::QEntity* p3DEntityParent)
100 for(
int i = 0; i < tSensor.
size(); ++i) {
102 pSurfItem->
addData(tSensor[i]);
104 QList<QStandardItem*> list;
106 list <<
new QStandardItem(pSurfItem->toolTip());
107 this->appendRow(list);
111 QList<FiffChInfo> lChInfoGrad;
112 QList<FiffChInfo> lChInfoMag;
113 QList<FiffChInfo> lChInfoEEG;
115 for(
int i = 0; i < lChInfo.size(); ++i) {
116 if(lChInfo.at(i).unit == FIFF_UNIT_T_M) {
117 lChInfoGrad << lChInfo.at(i);
118 }
else if(lChInfo.at(i).unit == FIFF_UNIT_T) {
119 lChInfoMag << lChInfo.at(i);
120 }
else if(lChInfo.at(i).kind == FIFFV_EEG_CH) {
121 lChInfoEEG << lChInfo.at(i);
126 if(!lChInfoGrad.isEmpty() && sDataType ==
"MEG") {
128 pSensorPosItem->
addData(lChInfoGrad,
"MEG", bads);
130 QList<QStandardItem*> list;
131 list << pSensorPosItem;
132 list <<
new QStandardItem(pSensorPosItem->toolTip());
133 this->appendRow(list);
136 if(!lChInfoMag.isEmpty() && sDataType ==
"MEG") {
138 pSensorPosItem->
addData(lChInfoMag,
"MEG", bads);
140 QList<QStandardItem*> list;
141 list << pSensorPosItem;
142 list <<
new QStandardItem(pSensorPosItem->toolTip());
143 this->appendRow(list);
146 if(!lChInfoEEG.isEmpty() && sDataType ==
"EEG") {
148 pSensorPosItem->
addData(lChInfoEEG,
"EEG", bads);
150 QList<QStandardItem*> list;
151 list << pSensorPosItem;
152 list <<
new QStandardItem(pSensorPosItem->toolTip());
153 this->appendRow(list);