Annotation set.
More...
#include <annotationset.h>
|
static bool | read (const QString &p_sLHFileName, const QString &p_sRHFileName, AnnotationSet &p_AnnotationSet) |
|
Annotation set.
Annotation set
Definition at line 96 of file annotationset.h.
AnnotationSet::AnnotationSet |
( |
| ) |
|
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 69 of file annotationset.cpp.
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 90 of file annotationset.cpp.
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 110 of file annotationset.cpp.
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 127 of file annotationset.cpp.
FSLIB::AnnotationSet::~AnnotationSet |
( |
| ) |
|
|
inline |
void AnnotationSet::clear |
( |
| ) |
|
void AnnotationSet::insert |
( |
const Annotation & |
p_Annotation | ) |
|
bool FSLIB::AnnotationSet::isEmpty |
( |
| ) |
const |
|
inline |
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 199 of file annotationset.cpp.
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 215 of file annotationset.cpp.
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 231 of file annotationset.cpp.
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 247 of file annotationset.cpp.
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 159 of file annotationset.cpp.
qint32 FSLIB::AnnotationSet::size |
( |
| ) |
const |
|
inline |
Returns number of loaded hemispheres
- 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< RowVector4i > & |
p_qListLabelRGBAs |
|
) |
| 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. |
- Returns
- true if successful, false otherwise
Definition at line 186 of file annotationset.cpp.
The documentation for this class was generated from the following files: