41 #include "../engine/model/data3Dtreemodel.h"
55 using namespace DISP3DLIB;
56 using namespace INVERSELIB;
57 using namespace MNELIB;
58 using namespace Eigen;
59 using namespace FIFFLIB;
72 QFile file(dipFitSettings.
mriname);
73 ECDSet ecdSetTrans = ecdSet;
78 for(
int i = 0; i < ecdSet.
size() ; ++i) {
79 MatrixX3f dipoles(1, 3);
81 dipoles(0,0) = ecdSet[i].rd(0);
82 dipoles(0,1) = ecdSet[i].rd(1);
83 dipoles(0,2) = ecdSet[i].rd(2);
87 ecdSetTrans[i].rd(0) = dipoles(0,0);
88 ecdSetTrans[i].rd(1) = dipoles(0,1);
89 ecdSetTrans[i].rd(2) = dipoles(0,2);
92 dipoles(0,0) = ecdSet[i].Q(0);
93 dipoles(0,1) = ecdSet[i].Q(1);
94 dipoles(0,2) = ecdSet[i].Q(2);
98 ecdSetTrans[i].Q(0) = dipoles(0,0);
99 ecdSetTrans[i].Q(1) = dipoles(0,1);
100 ecdSetTrans[i].Q(2) = dipoles(0,2);
103 qCritical(
"ECDView::ECDView - Cannot open FiffCoordTrans file");
107 m_pData3DModel->addDipoleFitData(
"sample", QString(
"Set %1").arg(dipFitSettings.
setno), ecdSetTrans);
110 QFile t_fileBem(dipFitSettings.
bemname);
112 if(t_fileBem.exists()) {
116 qCritical(
"ECDView::ECDView - Cannot open MNEBem file");