53 #include <QSharedPointer>
77 using namespace Eigen;
95 typedef QSharedPointer<Surface>
SPtr;
110 explicit Surface(
const QString& p_sFile);
121 explicit Surface(
const QString &subject_id, qint32 hemi,
const QString &surf,
const QString &subjects_dir);
133 explicit Surface(
const QString &path, qint32 hemi,
const QString &surf);
154 inline qint32 hemi()
const;
162 inline bool isEmpty()
const;
170 inline QString surf()
const;
187 static bool read(
const QString &subject_id, qint32 hemi,
const QString &surf,
const QString &subjects_dir,
Surface &p_Surface,
bool p_bLoadCurvature =
true);
203 static bool read(
const QString &path, qint32 hemi,
const QString &surf,
Surface &p_Surface,
bool p_bLoadCurvature =
true);
217 static bool read(
const QString &p_sFileName,
Surface &p_Surface,
bool p_bLoadCurvature =
true);
225 static VectorXf read_curv(
const QString &p_sFileName);
236 static MatrixX3f compute_normals(
const MatrixX3f& rr,
const MatrixX3i& tris);
244 inline const MatrixX3f& rr()
const;
252 inline const MatrixX3i& tris()
const;
260 inline const MatrixX3f& nn()
const;
268 inline const VectorXf& curv()
const;
276 inline const Vector3f& offset()
const;
284 inline Vector3f& offset();
296 Vector3f m_vecOffset;
314 return m_iHemi == -1;
QSharedPointer< const Surface > ConstSPtr
Fs library export/import macros.
const VectorXf & curv() const
const MatrixX3f & nn() const
const MatrixX3i & tris() const
const Vector3f & offset() const
QSharedPointer< Surface > SPtr
const MatrixX3f & rr() const