v2.0.0
Loading...
Searching...
No Matches
fiff_coord_trans.h File Reference

4x4 affine FIFF coordinate transform (FIFF_COORD_TRANS) annotated with source/destination coordinate-frame IDs. More...

#include "fiff_global.h"
#include "fiff_types.h"
#include "fiff_stream.h"
#include "fiff_dir_node.h"
#include <QIODevice>
#include <QSharedPointer>
#include <memory>
#include <Eigen/Core>
Include dependency graph for fiff_coord_trans.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  FIFFLIB::FiffCoordTrans
 Labelled 4x4 FIFF affine: source frame, destination frame, rotation, translation and cached inverse. More...

Namespaces

namespace  FIFFLIB
 FIFF file I/O, in-memory data structures and high-level readers/writers.

Macros

#define metatype_fiffcoordtrans
#define metatype_fiffcoordtrans_sptr

Functions

bool FIFFLIB::operator== (const FiffCoordTrans &a, const FiffCoordTrans &b)
 Q_DECLARE_METATYPE (FIFFLIB::FiffCoordTrans)
 Q_DECLARE_METATYPE (FIFFLIB::FiffCoordTrans::SPtr)

Detailed Description

4x4 affine FIFF coordinate transform (FIFF_COORD_TRANS) annotated with source/destination coordinate-frame IDs.

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2012-2026 MNE-CPP Authors

Author
Christoph Dinh chris.nosp@m.toph.nosp@m..dinh.nosp@m.@mne.nosp@m.-cpp..nosp@m.org; Christof Pieloth pielo.nosp@m.th@l.nosp@m.abp.h.nosp@m.twk-.nosp@m.leipz.nosp@m.ig.d.nosp@m.e; Jana Kiesel jana..nosp@m.kies.nosp@m.el@tu.nosp@m.-ilm.nosp@m.enau..nosp@m.de; Lorenz Esch loren.nosp@m.z.es.nosp@m.ch@tu.nosp@m.-ilm.nosp@m.enau..nosp@m.de; Ruben Doerfel doerf.nosp@m.elru.nosp@m.ben@a.nosp@m.ol.c.nosp@m.om; Juan GPC jgarc.nosp@m.iapr.nosp@m.ieto@.nosp@m.mgh..nosp@m.harva.nosp@m.rd.e.nosp@m.du; Gabriel Motta gabri.nosp@m.elbe.nosp@m.nmott.nosp@m.a@gm.nosp@m.ail.c.nosp@m.om
Since
0.1.0
Date
August 2012

The FIFF coordinate-frame world is a small zoo (FIFFV_COORD_DEVICE, FIFFV_COORD_HEAD, FIFFV_COORD_MRI, FIFFV_COORD_HPI, FIFFV_COORD_RAS, ...) and any forward / inverse computation must move points and orientations between them. FiffCoordTrans wraps one labelled affine: the 3x3 rotation rot, the 3-vector translation move, the precomputed inverse, and the integer from / to frame identifiers from fiff_constants.h.

The class also publishes the small algebra needed at the call sites: multiplication, inversion, and the convenience helper that picks the right transform out of a FiffCoordTransSet by (from, to) pair. Surface-compatible with the mne.transforms.Transform object in MNE-Python.

Definition in file fiff_coord_trans.h.

Macro Definition Documentation

◆ metatype_fiffcoordtrans

#define metatype_fiffcoordtrans

Definition at line 504 of file fiff_coord_trans.h.

◆ metatype_fiffcoordtrans_sptr

#define metatype_fiffcoordtrans_sptr

Definition at line 509 of file fiff_coord_trans.h.

Function Documentation

◆ Q_DECLARE_METATYPE() [1/2]

Q_DECLARE_METATYPE ( FIFFLIB::FiffCoordTrans )

Provides QT META type declaration of the FIFFLIB::FiffCoordTrans type. For signal/slot usage.

◆ Q_DECLARE_METATYPE() [2/2]

Q_DECLARE_METATYPE ( FIFFLIB::FiffCoordTrans::SPtr )

Provides QT META type declaration of the FIFFLIB::FiffCoordTrans::SPtr type. For signal/slot usage.