52 #include <QSharedPointer>
84 typedef QSharedPointer<Annotation>
SPtr;
99 explicit Annotation(
const QString& p_sFileName);
110 explicit Annotation(
const QString &subject_id, qint32 hemi,
const QString &surf,
const QString &subjects_dir);
122 explicit Annotation(
const QString &path, qint32 hemi,
const QString &surf);
142 inline bool isEmpty()
const;
150 inline qint32 hemi()
const;
158 inline Eigen::VectorXi& getVertices();
166 inline const Eigen::VectorXi getVertices()
const;
174 inline Eigen::VectorXi& getLabelIds();
182 inline const Eigen::VectorXi getLabelIds()
const;
198 inline const Colortable getColortable()
const;
212 static bool read(
const QString &subject_id, qint32 hemi,
const QString &atlas,
const QString &subjects_dir,
Annotation &p_Annotation);
225 static bool read(
const QString &path, qint32 hemi,
const QString &atlas,
Annotation &p_Annotation);
236 static bool read(
const QString &p_sFileName,
Annotation &p_Annotation);
251 bool toLabels(
const Surface &p_surf,
252 QList<Label> &p_qListLabels,
253 QList<Eigen::RowVector4i> &p_qListLabelRGBAs,
254 const QStringList& lLabelPicks = QStringList())
const;
262 inline QString filePath()
const;
270 inline QString fileName()
const;
277 Eigen::VectorXi m_Vertices;
278 Eigen::VectorXi m_LabelIds;
296 return m_iHemi == -1;
356 #endif // ANNOTATION_H