37 #ifndef ANNOTATION_SET_H
38 #define ANNOTATION_SET_H
52 #include <QSharedPointer>
83 typedef QSharedPointer<AnnotationSet>
SPtr;
84 typedef QSharedPointer<const AnnotationSet>
ConstSPtr;
101 explicit AnnotationSet(
const QString &subject_id, qint32 hemi,
const QString &atlas,
const QString &subjects_dir);
111 explicit AnnotationSet(
const QString &path, qint32 hemi,
const QString &atlas);
129 explicit AnnotationSet(
const QString& p_sLHFileName,
const QString& p_sRHFileName);
149 inline QMap<qint32, Annotation>& data();
157 inline bool isEmpty()
const;
177 static bool read(
const QString& p_sLHFileName,
const QString& p_sRHFileName,
AnnotationSet &p_AnnotationSet);
193 QList<Label> &p_qListLabels,
194 QList<Eigen::RowVector4i> &p_qListLabelRGBAs,
195 const QStringList& lLabelPicks = QStringList())
const;
215 const Annotation operator[] (qint32 idx)
const;
235 const Annotation operator[] (QString idt)
const;
243 inline qint32 size()
const;
246 QMap<qint32, Annotation> m_qMapAnnots;
262 return m_qMapAnnots.isEmpty();
269 return m_qMapAnnots.size();
273 #endif // ANNOTATION_SET_H