MNE-CPP
0.1.9
A Framework for Electrophysiology
|
Annotation set. More...
#include <annotationset.h>
Public Types | |
typedef QSharedPointer< AnnotationSet > | SPtr |
typedef QSharedPointer< const AnnotationSet > | ConstSPtr |
Public Member Functions | |
AnnotationSet () | |
AnnotationSet (const QString &subject_id, qint32 hemi, const QString &atlas, const QString &subjects_dir) | |
AnnotationSet (const QString &path, qint32 hemi, const QString &atlas) | |
AnnotationSet (const Annotation &p_LHAnnotation, const Annotation &p_RHAnnotation) | |
AnnotationSet (const QString &p_sLHFileName, const QString &p_sRHFileName) | |
~AnnotationSet () | |
void | clear () |
QMap< qint32, Annotation > & | data () |
bool | isEmpty () const |
void | insert (const Annotation &p_Annotation) |
bool | toLabels (const SurfaceSet &p_surfSet, QList< Label > &p_qListLabels, QList< Eigen::RowVector4i > &p_qListLabelRGBAs, const QStringList &lLabelPicks=QStringList()) const |
Annotation & | operator[] (qint32 idx) |
const Annotation | operator[] (qint32 idx) const |
Annotation & | operator[] (QString idt) |
const Annotation | operator[] (QString idt) const |
qint32 | size () const |
Static Public Member Functions | |
static bool | read (const QString &p_sLHFileName, const QString &p_sRHFileName, AnnotationSet &p_AnnotationSet) |
typedef QSharedPointer<const AnnotationSet> FSLIB::AnnotationSet::ConstSPtr |
Const shared pointer type for AnnotationSet.
Definition at line 84 of file annotationset.h.
typedef QSharedPointer<AnnotationSet> FSLIB::AnnotationSet::SPtr |
Shared pointer type for AnnotationSet.
Definition at line 83 of file annotationset.h.
AnnotationSet::AnnotationSet | ( | ) |
Default constructor
Definition at line 58 of file annotationset.cpp.
|
explicit |
Construts the surface set by reading it of the given files.
[in] | subject_id | Name of subject. |
[in] | hemi | Which hemisphere to load {0 -> lh, 1 -> rh, 2 -> both}. |
[in] | atlas | Name of the atlas to load (eg. aparc.a2009s, aparc, aparc.DKTatlas40, BA, BA.thresh, ...). |
[in] | subjects_dir | Subjects directory. |
Definition at line 64 of file annotationset.cpp.
|
explicit |
Construts the surface set by reading it of the given files.
[in] | path | path to surface directory. |
[in] | hemi | Which hemisphere to load {0 -> lh, 1 -> rh, 2 -> both}. |
[in] | atlas | Name of the atlas to load (eg. aparc.a2009s, aparc, aparc.DKTatlas40, BA, BA.thresh, ...). |
Definition at line 83 of file annotationset.cpp.
|
explicit |
Constructs an annotation set by assembling given annotations
[in] | p_LHAnnotation | Left hemisphere annotation. |
[in] | p_RHAnnotation | Right hemisphere annotation. |
Definition at line 102 of file annotationset.cpp.
|
explicit |
Constructs an annotation set by reading from annotation files
[in] | p_sLHFileName | Left hemisphere annotation file. |
[in] | p_sRHFileName | Right hemisphere annotation file. |
Definition at line 117 of file annotationset.cpp.
|
inline |
Destroys the annotation set.
Definition at line 135 of file annotationset.h.
void AnnotationSet::clear | ( | ) |
Initializes the AnnotationSet.
Definition at line 126 of file annotationset.cpp.
|
inline |
Returns The Annotation set map
Definition at line 253 of file annotationset.h.
void AnnotationSet::insert | ( | const Annotation & | p_Annotation | ) |
Insert an annotation
[in] | p_Annotation | Annotation to insert. |
Definition at line 133 of file annotationset.cpp.
|
inline |
True if AnnotationSet is empty.
Definition at line 260 of file annotationset.h.
Annotation & AnnotationSet::operator[] | ( | qint32 | idx | ) |
Subscript operator [] to access annotation by index
[in] | idx | the hemisphere index (0 or 1). |
Definition at line 187 of file annotationset.cpp.
const Annotation AnnotationSet::operator[] | ( | qint32 | idx | ) | const |
Subscript operator [] to access annotation by index
[in] | idx | the hemisphere index (0 or 1). |
Definition at line 202 of file annotationset.cpp.
Annotation & AnnotationSet::operator[] | ( | QString | idt | ) |
Subscript operator [] to access annotation by identifier
[in] | idt | the hemisphere identifier ("lh" or "rh"). |
Definition at line 217 of file annotationset.cpp.
const Annotation AnnotationSet::operator[] | ( | QString | idt | ) | const |
Subscript operator [] to access annotation by identifier
[in] | idt | the hemisphere identifier ("lh" or "rh"). |
Definition at line 232 of file annotationset.cpp.
|
static |
Reads different annotation files and assembles them to a AnnotationSet
[in] | p_sLHFileName | Left hemisphere annotation file. |
[in] | p_sRHFileName | Right hemisphere annotation file. |
[out] | p_AnnotationSet | The read annotation set. |
Definition at line 146 of file annotationset.cpp.
|
inline |
Returns number of loaded hemispheres
Definition at line 267 of file annotationset.h.
bool AnnotationSet::toLabels | ( | const SurfaceSet & | p_surfSet, |
QList< Label > & | p_qListLabels, | ||
QList< Eigen::RowVector4i > & | p_qListLabelRGBAs, | ||
const QStringList & | lLabelPicks = QStringList() |
||
) | const |
python labels_from_parc
Converts annotation to a label list and colortable
[in] | p_surfSet | the SurfaceSet to read the vertex positions from. |
[out] | p_qListLabels | the converted labels are appended to a given list. Stored data are not affected. |
[out] | p_qListLabelRGBAs | the converted label RGBAs are appended to a given list. Stored data are not affected. |
[out] | lLabelPicks | the label names which should be picked. |
Definition at line 172 of file annotationset.cpp.