Annotation set.
More...
#include <annotationset.h>
|
| | 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 bool | read (const QString &p_sLHFileName, const QString &p_sRHFileName, AnnotationSet &p_AnnotationSet) |
Annotation set.
Annotation set
Definition at line 80 of file annotationset.h.
◆ ConstSPtr
◆ SPtr
◆ AnnotationSet() [1/5]
| AnnotationSet::AnnotationSet |
( |
| ) |
|
◆ AnnotationSet() [2/5]
| AnnotationSet::AnnotationSet |
( |
const QString & | subject_id, |
|
|
qint32 | hemi, |
|
|
const QString & | atlas, |
|
|
const QString & | subjects_dir ) |
|
explicit |
Construts the surface set by reading it of the given files.
- Parameters
-
| [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.
◆ AnnotationSet() [3/5]
| AnnotationSet::AnnotationSet |
( |
const QString & | path, |
|
|
qint32 | hemi, |
|
|
const QString & | atlas ) |
|
explicit |
Construts the surface set by reading it of the given files.
- Parameters
-
| [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.
◆ AnnotationSet() [4/5]
| AnnotationSet::AnnotationSet |
( |
const Annotation & | p_LHAnnotation, |
|
|
const Annotation & | p_RHAnnotation ) |
|
explicit |
Constructs an annotation set by assembling given annotations
- Parameters
-
| [in] | p_LHAnnotation | Left hemisphere annotation. |
| [in] | p_RHAnnotation | Right hemisphere annotation. |
Definition at line 102 of file annotationset.cpp.
◆ AnnotationSet() [5/5]
| AnnotationSet::AnnotationSet |
( |
const QString & | p_sLHFileName, |
|
|
const QString & | p_sRHFileName ) |
|
explicit |
Constructs an annotation set by reading from annotation files
- Parameters
-
| [in] | p_sLHFileName | Left hemisphere annotation file. |
| [in] | p_sRHFileName | Right hemisphere annotation file. |
Definition at line 117 of file annotationset.cpp.
◆ ~AnnotationSet()
| FSLIB::AnnotationSet::~AnnotationSet |
( |
| ) |
|
|
inline |
◆ clear()
| void AnnotationSet::clear |
( |
| ) |
|
◆ data()
| QMap< qint32, Annotation > & FSLIB::AnnotationSet::data |
( |
| ) |
|
|
inline |
◆ insert()
| void AnnotationSet::insert |
( |
const Annotation & | p_Annotation | ) |
|
◆ isEmpty()
| bool FSLIB::AnnotationSet::isEmpty |
( |
| ) |
const |
|
inline |
◆ operator[]() [1/4]
| Annotation & AnnotationSet::operator[] |
( |
qint32 | idx | ) |
|
Subscript operator [] to access annotation by index
- Parameters
-
| [in] | idx | the hemisphere index (0 or 1). |
- Returns
- Annotation related to the parameter index.
Definition at line 187 of file annotationset.cpp.
◆ operator[]() [2/4]
| const Annotation AnnotationSet::operator[] |
( |
qint32 | idx | ) |
const |
Subscript operator [] to access annotation by index
- Parameters
-
| [in] | idx | the hemisphere index (0 or 1). |
- Returns
- Annotation related to the parameter index.
Definition at line 202 of file annotationset.cpp.
◆ operator[]() [3/4]
| Annotation & AnnotationSet::operator[] |
( |
QString | idt | ) |
|
Subscript operator [] to access annotation by identifier
- Parameters
-
| [in] | idt | the hemisphere identifier ("lh" or "rh"). |
- Returns
- Annotation related to the parameter identifier.
Definition at line 217 of file annotationset.cpp.
◆ operator[]() [4/4]
| const Annotation AnnotationSet::operator[] |
( |
QString | idt | ) |
const |
Subscript operator [] to access annotation by identifier
- Parameters
-
| [in] | idt | the hemisphere identifier ("lh" or "rh"). |
- Returns
- Annotation related to the parameter identifier.
Definition at line 232 of file annotationset.cpp.
◆ read()
| bool AnnotationSet::read |
( |
const QString & | p_sLHFileName, |
|
|
const QString & | p_sRHFileName, |
|
|
AnnotationSet & | p_AnnotationSet ) |
|
static |
Reads different annotation files and assembles them to a AnnotationSet
- Parameters
-
| [in] | p_sLHFileName | Left hemisphere annotation file. |
| [in] | p_sRHFileName | Right hemisphere annotation file. |
| [out] | p_AnnotationSet | The read annotation set. |
- Returns
- true if succesfull, false otherwise.
Definition at line 146 of file annotationset.cpp.
◆ size()
| qint32 FSLIB::AnnotationSet::size |
( |
| ) |
const |
|
inline |
Returns number of loaded hemispheres
- Returns
- number of loaded hemispheres.
Definition at line 267 of file annotationset.h.
◆ toLabels()
| 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
- Parameters
-
| [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. |
- Returns
- true if successful, false otherwise.
Definition at line 172 of file annotationset.cpp.
The documentation for this class was generated from the following files: