36 #ifndef STCDATAMODEL_H
37 #define STCDATAMODEL_H
44 #include "../disp3DNew_global.h"
62 #include <QAbstractTableModel>
82 class MNESourceEstimate;
99 using namespace Eigen;
101 using namespace FSLIB;
109 namespace StcDataModelRoles
111 enum ItemRole{GetIndexLH = Qt::UserRole + 1001,
112 GetIndexRH = Qt::UserRole + 1002,
113 GetStcValLH = Qt::UserRole + 1003,
114 GetStcValRH = Qt::UserRole + 1004,
115 GetRelStcValLH = Qt::UserRole + 1005,
116 GetRelStcValRH = Qt::UserRole + 1006,
117 GetSmoothedStcValLH = Qt::UserRole + 1007,
118 GetSmoothedStcValRH = Qt::UserRole + 1008};
131 typedef QSharedPointer<StcDataModel>
SPtr;
138 virtual int rowCount(
const QModelIndex &parent = QModelIndex())
const ;
139 virtual int columnCount(
const QModelIndex &parent = QModelIndex())
const;
151 inline QVariant data(
int row,
int column,
int role = Qt::DisplayRole)
const;
153 virtual QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const;
154 virtual QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const;
158 void init(
const QString &subject_id, qint32 hemi,
const QString &surf,
const QString &subjects_dir,
const QString &atlas,
const MNEForwardSolution &forwardSolution);
160 inline QVector3D getMin()
const;
161 inline QVector3D getMax()
const;
164 void setAverage(qint32 samples);
166 void setLoop(
bool looping);
169 void setNormalization(qint32 fraction);
171 void setStcSample(
const VectorXd &sample);
173 void setVertLabelIDs(
const VectorXi &vertLabelIDs);
175 VectorXd smoothEstimates(
int niter,
int hemi)
const;
183 bool m_bIntervallSet;
185 VectorXi m_vertLabelIds;
187 QMap<qint32, qint32> m_qMapLabelIdChannelLH;
188 QMap<qint32, qint32> m_qMapLabelIdChannelRH;
190 VectorXd m_vecCurStc;
191 VectorXd m_vecCurRelStc;
193 double m_dStcNormMax;
199 QList<Label> m_qListLabels;
201 QList<RowVector4i> m_qListRGBAs;
202 QList<Matrix3Xf> m_qListTriRRs;
208 QVector3D m_vecMinRR;
209 QVector3D m_vecMaxRR;
220 return data(index(row, column), role);
226 inline QVector3D StcDataModel::getMin()
const
234 inline QVector3D StcDataModel::getMax()
const
241 Q_DECLARE_METATYPE(Eigen::Matrix3Xf);
242 Q_DECLARE_METATYPE(Eigen::VectorXd);
245 #endif // STCDATAMODEL_H
QVariant data(int row, int column, int role=Qt::DisplayRole) const
Table model which prepares source estimate information.
QSharedPointer< const StcDataModel > ConstSPtr
QSharedPointer< StcDataModel > SPtr
SurfaceSet class declaration.
QSharedPointer< StcDataWorker > SPtr
MNEForwardSolution class declaration, which provides the forward solution including the source space ...
AnnotationSet class declaration.
A hemisphere set of surfaces.
StcDataWorker class declaration.