MNE-CPP  beta 1.0
Public Types | Public Member Functions | Protected Member Functions | List of all members
DISP3DLIB::BrainView Class Reference

FreeSurfer surface visualisation. More...

#include <brainview.h>

Inheritance diagram for DISP3DLIB::BrainView:

Public Types

enum  ViewOption { ShowCurvature = 0x0 }
 
typedef QSharedPointer< BrainViewSPtr
 
typedef QSharedPointer< const BrainViewConstSPtr
 

Public Member Functions

 BrainView ()
 
 BrainView (const QString &subject_id, qint32 hemi, const QString &surf, const QString &subjects_dir)
 
 BrainView (const QString &subject_id, qint32 hemi, const QString &surf, const QString &atlas, const QString &subjects_dir)
 
 BrainView (const QString &p_sFile)
 
 ~BrainView ()
 
void init ()
 

Protected Member Functions

void initializeGL (QGLPainter *painter)
 
void paintGL (QGLPainter *painter)
 
void keyPressEvent (QKeyEvent *e)
 
void mouseMoveEvent (QMouseEvent *e)
 
void mousePressEvent (QMouseEvent *e)
 

Detailed Description

FreeSurfer surface visualisation.

ToDo: derive this from geometryview! Visualizes FreeSurfer surfaces.

Definition at line 106 of file brainview.h.

Member Typedef Documentation

typedef QSharedPointer<const BrainView> DISP3DLIB::BrainView::ConstSPtr

Const shared pointer type for BrainView class.

Definition at line 111 of file brainview.h.

typedef QSharedPointer<BrainView> DISP3DLIB::BrainView::SPtr

Shared pointer type for BrainView class.

Definition at line 110 of file brainview.h.

Constructor & Destructor Documentation

BrainView::BrainView ( )

Default constructor

Definition at line 69 of file brainview.cpp.

BrainView::BrainView ( const QString &  subject_id,
qint32  hemi,
const QString &  surf,
const QString &  subjects_dir 
)
explicit

Construts the BrainView 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

Definition at line 81 of file brainview.cpp.

BrainView::BrainView ( const QString &  subject_id,
qint32  hemi,
const QString &  surf,
const QString &  atlas,
const QString &  subjects_dir 
)
explicit

Construts the BrainView 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

Definition at line 94 of file brainview.cpp.

BrainView::BrainView ( const QString &  p_sFile)
explicit

Construts the brain view by reading a given surface.

Parameters
[in]p_sFileSurface file name with path

Definition at line 108 of file brainview.cpp.

BrainView::~BrainView ( )

Default destructor

Definition at line 123 of file brainview.cpp.

Member Function Documentation

void BrainView::initializeGL ( QGLPainter *  painter)
protected

Initializes the current GL context represented by painter.

Parameters
[in]painterGL painter which should be initialized

Definition at line 146 of file brainview.cpp.

void BrainView::keyPressEvent ( QKeyEvent *  e)
protected

Processes the key press event e.

Parameters
[in]ethe key press event.

Definition at line 230 of file brainview.cpp.

void BrainView::mouseMoveEvent ( QMouseEvent *  e)
protected

Processes the mouse move event e.

Parameters
[in]ethe mouse move event.

Definition at line 252 of file brainview.cpp.

void BrainView::mousePressEvent ( QMouseEvent *  e)
protected

Processes the mouse press event e.

Parameters
[in]ethe mouse press event.

Definition at line 274 of file brainview.cpp.

void BrainView::paintGL ( QGLPainter *  painter)
protected

Paints the scene onto painter. The color and depth buffers will have already been cleared, and the camera() position set.

Parameters
[in]painterGL painter which is updated

Definition at line 199 of file brainview.cpp.


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