Container holding the lh and/or rh FsAnnotation for one parcellation atlas. More...
#include <fs_annotationset.h>
Public Types | |
| typedef QSharedPointer< FsAnnotationSet > | SPtr |
| typedef QSharedPointer< const FsAnnotationSet > | ConstSPtr |
Public Member Functions | |
| FsAnnotationSet () | |
| FsAnnotationSet (const QString &subject_id, qint32 hemi, const QString &atlas, const QString &subjects_dir) | |
| FsAnnotationSet (const QString &path, qint32 hemi, const QString &atlas) | |
| FsAnnotationSet (const FsAnnotation &p_LHAnnotation, const FsAnnotation &p_RHAnnotation) | |
| FsAnnotationSet (const QString &p_sLHFileName, const QString &p_sRHFileName) | |
| ~FsAnnotationSet () | |
| void | clear () |
| QMap< qint32, FsAnnotation > & | data () |
| bool | isEmpty () const |
| void | insert (const FsAnnotation &p_Annotation) |
| bool | toLabels (const FsSurfaceSet &p_surfSet, QList< FsLabel > &p_qListLabels, QList< Eigen::RowVector4i > &p_qListLabelRGBAs, const QStringList &lLabelPicks=QStringList()) const |
| FsAnnotation & | operator[] (qint32 idx) |
| const FsAnnotation | operator[] (qint32 idx) const |
| FsAnnotation & | operator[] (QString idt) |
| const FsAnnotation | operator[] (QString idt) const |
| qint32 | size () const |
Static Public Member Functions | |
| static bool | read (const QString &p_sLHFileName, const QString &p_sRHFileName, FsAnnotationSet &p_AnnotationSet) |
Container holding the lh and/or rh FsAnnotation for one parcellation atlas.
Keyed on hemisphere id (0 = lh, 1 = rh). When loaded from a single atlas name both hemispheres share the same colortable layout, so cross-hemisphere region lookup is consistent. The set is intended to be aligned one-to-one with an FsSurfaceSet sharing the same subject and vertex count per hemisphere.
Definition at line 74 of file fs_annotationset.h.
| typedef QSharedPointer<const FsAnnotationSet> FSLIB::FsAnnotationSet::ConstSPtr |
Const shared pointer type for FsAnnotationSet.
Definition at line 78 of file fs_annotationset.h.
| typedef QSharedPointer<FsAnnotationSet> FSLIB::FsAnnotationSet::SPtr |
Shared pointer type for FsAnnotationSet.
Definition at line 77 of file fs_annotationset.h.
| FsAnnotationSet::FsAnnotationSet | ( | ) |
Default constructor
Definition at line 34 of file fs_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 40 of file fs_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 59 of file fs_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 78 of file fs_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 93 of file fs_annotationset.cpp.
|
inline |
Destroys the annotation set.
Definition at line 129 of file fs_annotationset.h.
| void FsAnnotationSet::clear | ( | ) |
Initializes the FsAnnotationSet.
Definition at line 102 of file fs_annotationset.cpp.
|
inline |
Returns The FsAnnotation set map
Definition at line 247 of file fs_annotationset.h.
| void FsAnnotationSet::insert | ( | const FsAnnotation & | p_Annotation | ) |
Insert an annotation
| [in] | p_Annotation | FsAnnotation to insert. |
Definition at line 109 of file fs_annotationset.cpp.
|
inline |
True if FsAnnotationSet is empty.
Definition at line 254 of file fs_annotationset.h.
| FsAnnotation & FsAnnotationSet::operator[] | ( | qint32 | idx | ) |
Subscript operator [] to access annotation by index
| [in] | idx | the hemisphere index (0 or 1). |
Definition at line 166 of file fs_annotationset.cpp.
| const FsAnnotation FsAnnotationSet::operator[] | ( | qint32 | idx | ) | const |
Subscript operator [] to access annotation by index
| [in] | idx | the hemisphere index (0 or 1). |
Definition at line 181 of file fs_annotationset.cpp.
| FsAnnotation & FsAnnotationSet::operator[] | ( | QString | idt | ) |
Subscript operator [] to access annotation by identifier
| [in] | idt | the hemisphere identifier ("lh" or "rh"). |
Definition at line 196 of file fs_annotationset.cpp.
| const FsAnnotation FsAnnotationSet::operator[] | ( | QString | idt | ) | const |
Subscript operator [] to access annotation by identifier
| [in] | idt | the hemisphere identifier ("lh" or "rh"). |
Definition at line 211 of file fs_annotationset.cpp.
|
static |
Reads different annotation files and assembles them to a FsAnnotationSet
| [in] | p_sLHFileName | Left hemisphere annotation file. |
| [in] | p_sRHFileName | Right hemisphere annotation file. |
| [out] | p_AnnotationSet | The read annotation set. |
Definition at line 122 of file fs_annotationset.cpp.
|
inline |
Returns number of loaded hemispheres
Definition at line 261 of file fs_annotationset.h.
| bool FsAnnotationSet::toLabels | ( | const FsSurfaceSet & | p_surfSet, |
| QList< FsLabel > & | 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 FsSurfaceSet 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 151 of file fs_annotationset.cpp.