MNE-CPP
beta 1.0
|
Holds the data of one hemisphere in form of a mesh. More...
#include <brainsurface.h>
Public Types | |
typedef QSharedPointer< BrainSurface > | SPtr |
typedef QSharedPointer< const BrainSurface > | ConstSPtr |
Public Member Functions | |
BrainSurface (QEntity *parent=0) | |
BrainSurface (const QString &subject_id, qint32 hemi, const QString &surf, const QString &subjects_dir, QEntity *parent=0) | |
BrainSurface (const QString &subject_id, qint32 hemi, const QString &surf, const QString &atlas, const QString &subjects_dir, QEntity *parent=0) | |
BrainSurface (const QString &p_sFile, QEntity *parent=0) | |
~BrainSurface () | |
void | updateActivation () |
void | dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector< int > &roles=QVector< int >()) |
void | setModel (StcDataModel::SPtr model) |
![]() | |
RenderableEntity (Qt3D::QNode *parent=0) | |
Qt3D::QScaleTransform * | scaleTransform () const |
Qt3D::QTranslateTransform * | translateTransform () const |
Qt3D::QRotateTransform * | rotateTransform () const |
Protected Member Functions | |
void | init () |
void | calcBoundingBox () |
Protected Attributes | |
BrainHemisphere * | m_pLeftHemisphere |
BrainHemisphere * | m_pRightHemisphere |
SurfaceSet | m_SurfaceSet |
AnnotationSet | m_AnnotationSet |
QList< QColor > | m_qlColors |
QVector3D | m_vecBoundingBoxMin |
QVector3D | m_vecBoundingBoxMax |
QVector3D | m_vecBoundingBoxCenter |
StcDataModel::SPtr | m_pStcDataModel |
QMap< int, QColor > | m_qmDefaultVertexColorLH |
QMap< int, QColor > | m_qmDefaultVertexColorRH |
QMap< int, QColor > | m_qmVertexActivationColorLH |
QMap< int, QColor > | m_qmVertexActivationColorRH |
QColor | m_ColorSulci |
QColor | m_ColorGyri |
Holds the data of one hemisphere in form of a mesh.
Basic functionalities for freesurfer surface.
Definition at line 110 of file brainsurface.h.
typedef QSharedPointer<const BrainSurface> DISP3DNEWLIB::BrainSurface::ConstSPtr |
Const shared pointer type for BrainSurface class.
Definition at line 115 of file brainsurface.h.
typedef QSharedPointer<BrainSurface> DISP3DNEWLIB::BrainSurface::SPtr |
Shared pointer type for BrainSurface class.
Definition at line 114 of file brainsurface.h.
|
explicit |
Default constructor
[in] | parent | The parent node |
Definition at line 64 of file brainsurface.cpp.
|
explicit |
Construts the BrainSurface set by reading it of the given surface.
[in] | subject_id | Name of subject |
[in] | hemi | Which hemisphere to load {0 -> lh, 1 -> rh, 2 -> both} |
[in] | surf | Name of the surface to load (eg. inflated, orig ...) |
[in] | subjects_dir | Subjects directory |
[in] | parent | The parent node |
Definition at line 77 of file brainsurface.cpp.
|
explicit |
Construts the BrainSurface set by reading it of the given surface.
[in] | subject_id | Name of subject |
[in] | hemi | Which hemisphere to load {0 -> lh, 1 -> rh, 2 -> both} |
[in] | surf | Name of the surface to load (eg. inflated, orig ...) |
[in] | atlas | Name of the atlas to load (eg. aparc.a2009s, aparc, aparc.DKTatlas40, BA, BA.thresh, ...) |
[in] | subjects_dir | Subjects directory |
[in] | parent | The parent node |
Definition at line 91 of file brainsurface.cpp.
|
explicit |
Construts the BrainSurface by reading a given surface.
[in] | p_sFile | Surface file name with path |
[in] | parent | The parent node |
Definition at line 106 of file brainsurface.cpp.
BrainSurface::~BrainSurface | ( | ) |
Default destructor
Definition at line 122 of file brainsurface.cpp.
|
protected |
Calculates the bounding box and stores it to m_vecBoundingBoxMin, m_vecBoundingBoxMax and m_vecBoundingBoxCenter.
Definition at line 318 of file brainsurface.cpp.
void BrainSurface::dataChanged | ( | const QModelIndex & | topLeft, |
const QModelIndex & | bottomRight, | ||
const QVector< int > & | roles = QVector<int> () |
||
) |
Informs the view about the changed data from the set model
[in] | topLeft | |
[in] | bottomRight | |
[in] | roles |
Definition at line 184 of file brainsurface.cpp.
|
protected |
Initializes the BrainSurface.
Definition at line 274 of file brainsurface.cpp.
void BrainSurface::setModel | ( | StcDataModel::SPtr | model | ) |
void BrainSurface::updateActivation | ( | ) |
Updates the current activation.
Definition at line 130 of file brainsurface.cpp.
|
protected |
Annotation set
Definition at line 207 of file brainsurface.h.
|
protected |
current colors which also reflect the activation
Definition at line 208 of file brainsurface.h.
|
protected |
Surface set
Definition at line 206 of file brainsurface.h.
|
protected |
X, Y, Z center.
Definition at line 212 of file brainsurface.h.
|
protected |
X, Y, Z maxima.
Definition at line 211 of file brainsurface.h.
|
protected |
X, Y, Z minima.
Definition at line 210 of file brainsurface.h.