22#ifndef MNE_SOURCE_SPACES_H
23#define MNE_SOURCE_SPACES_H
83 using SPtr = std::shared_ptr<MNESourceSpaces>;
84 using ConstSPtr = std::shared_ptr<const MNESourceSpaces>;
197 inline qint32
size()
const;
303 std::shared_ptr<MNESourceSpace>&
at(qint32 idx);
313 const std::shared_ptr<MNESourceSpace>&
at(qint32 idx)
const;
336 static bool complete_source_space_info(
MNEHemisphere& p_Hemisphere);
355 std::vector<std::shared_ptr<MNESourceSpace>> m_sourceSpaces;
364 return m_sourceSpaces.empty();
371 return static_cast<qint32
>(m_sourceSpaces.size());
380 for (qint32 i = 0; i < a.
size(); ++i) {
bool operator==(const BIDSPath &a, const BIDSPath &b)
MNELIB shared-library export/import macros and library build metadata.
Per-hemisphere cortical surface bundle with decimation, patch info and rendering buffers.
Recursive node of the parsed FIFF block tree (FIFFB_* hierarchy with directory entries and children).
Static MATLAB-style FIFF facade: thin wrapper functions kept for parity with the historical mne-matla...
Primitive scalar typedefs and forward-compatible aliases backing the FIFF type system.
Core MNE data structures (source spaces, source estimates, hemispheres).
bool operator==(const MNEClusterInfo &a, const MNEClusterInfo &b)
FreeSurfer surface, annotation and parcellation I/O for mne-cpp.
Labelled 4x4 FIFF affine: source frame, destination frame, rotation, translation and cached inverse.
QSharedPointer< FiffDirNode > SPtr
FIFF tag-stream reader/writer: wraps a QIODevice and exposes typed read_* / write_* methods for every...
QSharedPointer< FiffStream > SPtr
A FreeSurfer/MNE surface label: per-vertex indices, Tk-RAS positions and scalar values for one hemisp...
Hemisphere provides geometry information.
This defines a source space.
void writeToStream(FIFFLIB::FiffStream *p_pStream)
MNESourceSpaces pick_regions(const QList< FSLIB::FsLabel > &p_qListLabels) const
std::shared_ptr< const MNESourceSpaces > ConstSPtr
bool transform_source_space_to(FIFFLIB::fiff_int_t dest, FIFFLIB::FiffCoordTrans &trans)
MNEHemisphere * hemisphereAt(qint32 idx)
std::shared_ptr< MNESourceSpaces > SPtr
void append(const MNESourceSpace &space)
static bool patch_info(MNEHemisphere &p_Hemisphere)
static qint32 find_source_space_hemi(MNESourceSpace &p_SourceSpace)
QList< Eigen::VectorXi > label_src_vertno_sel(const FSLIB::FsLabel &p_label, Eigen::VectorXi &src_sel) const
static bool readFromStream(FIFFLIB::FiffStream::SPtr &p_pStream, bool add_geom, MNESourceSpaces &p_SourceSpace)
std::shared_ptr< MNESourceSpace > & at(qint32 idx)
QList< Eigen::VectorXi > get_vertno() const