53#define VEC_COPY(to,from) {\
134 QList<FiffDirNode::SPtr> sss;
143 if (sss.size() > 0) {
150 s->
job = *t_pTag->toInt();
158 r0 = t_pTag->toFloat();
171 s->
nchan = *t_pTag->toInt();
176 int ncomp = t_pTag->size()/
sizeof(
fiff_int_t);
177 int *raw = t_pTag->toInt();
178 s->
comp_info = Eigen::VectorXi::Map(raw, ncomp);
181 printf(
"Number of SSS components does not match the expansion orders listed in the file");
188 for (j = 0, n = 3, p = 0; j < s->
in_order; j++, n = n + 2) {
189 for (q = 0; q < n; q++, p++)
193 for (j = 0, n = 3; j < s->
out_order; j++, n = n + 2) {
194 for (q = 0; q < n; q++, p++)
248 for (k = 0; frames[k].
frame != -1; k++) {
249 if (frame == frames[k].frame)
250 return frames[k].
name;
252 return frames[k].
name;
261 out <<
"job : " << this->
job <<
"\n";
263 out <<
"origin : " << qSetFieldWidth(6) << qSetRealNumberPrecision(1) << Qt::fixed
264 << 1000*this->
origin[0] <<
" " << 1000*this->
origin[1] <<
" " << 1000*this->
origin[2] << qSetFieldWidth(0) <<
" mm\n";
265 out <<
"in order : " << this->
in_order <<
"\n";
266 out <<
"out order : " << this->
out_order <<
"\n";
267 out <<
"nchan : " << this->
nchan <<
"\n";
268 out <<
"ncomp : " << this->
comp_info.size() <<
"\n";
269 out <<
"in nuse : " << this->
in_nuse <<
"\n";
270 out <<
"out nuse : " << this->
out_nuse <<
"\n";
275 for (j = 0, n = 3, p = 0; j < this->in_order; j++, n = n + 2) {
278 for (q = 0; q < n; q++, p++)
282 for (j = 0, n = 3; j < this->out_order; j++, n = n + 2) {
285 for (q = 0; q < n; q++, p++)
FiffTag class declaration, which provides fiff tag I/O and processing methods.
#define FIFFV_MNE_COORD_MNI_TAL
#define FIFFV_MNE_COORD_FS_TAL_LTZ
#define FIFFV_COORD_MRI_SLICE
#define FIFFV_MNE_COORD_CTF_DEVICE
#define FIFFV_COORD_DEVICE
#define FIFFV_COORD_MRI_DISPLAY
#define FIFFV_MNE_COORD_MRI_VOXEL
#define FIFFV_MNE_COORD_CTF_HEAD
#define FIFFV_COORD_ISOTRAK
#define FIFFV_COORD_UNKNOWN
#define FIFFV_MNE_COORD_FS_TAL_GTZ
#define FIFFV_MNE_COORD_RAS
FiffStream class declaration.
Header file describing the numerical values used in fif files.
#define FIFF_SSS_COMPONENTS
#define FIFFV_SSS_JOB_NOTHING
#define VEC_COPY(to, from)
const char * mne_coord_frame_name_1(int frame)
MNE SSS Data (MNESssData) class declaration.
Core MNE data structures (source spaces, source estimates, hemispheres).
FIFF file I/O and data structures (raw, epochs, evoked, covariance, forward).
QSharedPointer< FiffDirNode > SPtr
QSharedPointer< FiffStream > SPtr
QSharedPointer< FiffTag > SPtr
Lookup record mapping a FIFF coordinate frame integer code to its human-readable name.
Eigen::VectorXi comp_info
static MNESssData * read(const QString &name)
void print(QTextStream &out) const
static MNESssData * read_from_node(QSharedPointer< FIFFLIB::FiffStream > &stream, const QSharedPointer< FIFFLIB::FiffDirNode > &start)