MNE-CPP  beta 1.0
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DISP3DNEWLIB::BrainSurface Class Reference

Holds the data of one hemisphere in form of a mesh. More...

#include <brainsurface.h>

Inheritance diagram for DISP3DNEWLIB::BrainSurface:
DISP3DNEWLIB::RenderableEntity

Public Types

typedef QSharedPointer< BrainSurfaceSPtr
 
typedef QSharedPointer< const BrainSurfaceConstSPtr
 

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)
 
- Public Member Functions inherited from DISP3DNEWLIB::RenderableEntity
 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

BrainHemispherem_pLeftHemisphere
 
BrainHemispherem_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
 

Detailed Description

Holds the data of one hemisphere in form of a mesh.

Basic functionalities for freesurfer surface.

Definition at line 110 of file brainsurface.h.

Member Typedef Documentation

typedef QSharedPointer<const BrainSurface> DISP3DNEWLIB::BrainSurface::ConstSPtr

Const shared pointer type for BrainSurface class.

Definition at line 115 of file brainsurface.h.

Shared pointer type for BrainSurface class.

Definition at line 114 of file brainsurface.h.

Constructor & Destructor Documentation

BrainSurface::BrainSurface ( QEntity *  parent = 0)
explicit

Default constructor

Parameters
[in]parentThe parent node

Definition at line 64 of file brainsurface.cpp.

BrainSurface::BrainSurface ( const QString &  subject_id,
qint32  hemi,
const QString &  surf,
const QString &  subjects_dir,
QEntity *  parent = 0 
)
explicit

Construts the BrainSurface set by reading it of the given surface.

Parameters
[in]subject_idName of subject
[in]hemiWhich hemisphere to load {0 -> lh, 1 -> rh, 2 -> both}
[in]surfName of the surface to load (eg. inflated, orig ...)
[in]subjects_dirSubjects directory
[in]parentThe parent node

Definition at line 77 of file brainsurface.cpp.

BrainSurface::BrainSurface ( const QString &  subject_id,
qint32  hemi,
const QString &  surf,
const QString &  atlas,
const QString &  subjects_dir,
QEntity *  parent = 0 
)
explicit

Construts the BrainSurface set by reading it of the given surface.

Parameters
[in]subject_idName of subject
[in]hemiWhich hemisphere to load {0 -> lh, 1 -> rh, 2 -> both}
[in]surfName of the surface to load (eg. inflated, orig ...)
[in]atlasName of the atlas to load (eg. aparc.a2009s, aparc, aparc.DKTatlas40, BA, BA.thresh, ...)
[in]subjects_dirSubjects directory
[in]parentThe parent node

Definition at line 91 of file brainsurface.cpp.

BrainSurface::BrainSurface ( const QString &  p_sFile,
QEntity *  parent = 0 
)
explicit

Construts the BrainSurface by reading a given surface.

Parameters
[in]p_sFileSurface file name with path
[in]parentThe parent node

Definition at line 106 of file brainsurface.cpp.

BrainSurface::~BrainSurface ( )

Default destructor

Definition at line 122 of file brainsurface.cpp.

Member Function Documentation

void BrainSurface::calcBoundingBox ( )
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

Parameters
[in]topLeft
[in]bottomRight
[in]roles

Definition at line 184 of file brainsurface.cpp.

void BrainSurface::init ( )
protected

Initializes the BrainSurface.

Definition at line 274 of file brainsurface.cpp.

void BrainSurface::setModel ( StcDataModel::SPtr  model)

Sets the data model

Parameters
[in]model

Definition at line 263 of file brainsurface.cpp.

void BrainSurface::updateActivation ( )

Updates the current activation.

Definition at line 130 of file brainsurface.cpp.

Member Data Documentation

AnnotationSet DISP3DNEWLIB::BrainSurface::m_AnnotationSet
protected

Annotation set

Definition at line 207 of file brainsurface.h.

QList<QColor> DISP3DNEWLIB::BrainSurface::m_qlColors
protected

current colors which also reflect the activation

Definition at line 208 of file brainsurface.h.

SurfaceSet DISP3DNEWLIB::BrainSurface::m_SurfaceSet
protected

Surface set

Definition at line 206 of file brainsurface.h.

QVector3D DISP3DNEWLIB::BrainSurface::m_vecBoundingBoxCenter
protected

X, Y, Z center.

Definition at line 212 of file brainsurface.h.

QVector3D DISP3DNEWLIB::BrainSurface::m_vecBoundingBoxMax
protected

X, Y, Z maxima.

Definition at line 211 of file brainsurface.h.

QVector3D DISP3DNEWLIB::BrainSurface::m_vecBoundingBoxMin
protected

X, Y, Z minima.

Definition at line 210 of file brainsurface.h.


The documentation for this class was generated from the following files: