MNE-CPP
0.1.9
A Framework for Electrophysiology
|
A hemisphere set of surfaces. More...
#include <surfaceset.h>
Public Types | |
typedef QSharedPointer< SurfaceSet > | SPtr |
typedef QSharedPointer< const SurfaceSet > | ConstSPtr |
Public Member Functions | |
SurfaceSet () | |
SurfaceSet (const QString &subject_id, qint32 hemi, const QString &surf, const QString &subjects_dir) | |
SurfaceSet (const QString &path, qint32 hemi, const QString &surf) | |
SurfaceSet (const Surface &p_LHSurface, const Surface &p_RHSurface) | |
SurfaceSet (const QString &p_sLHFileName, const QString &p_sRHFileName) | |
~SurfaceSet () | |
void | clear () |
QMap< qint32, Surface > & | data () |
bool | isEmpty () const |
void | insert (const Surface &p_Surface) |
QString | surf () const |
const Surface & | operator[] (qint32 idx) const |
Surface & | operator[] (qint32 idx) |
const Surface & | operator[] (QString idt) const |
Surface & | operator[] (QString idt) |
qint32 | size () const |
Static Public Member Functions | |
static bool | read (const QString &p_sLHFileName, const QString &p_sRHFileName, SurfaceSet &p_SurfaceSet) |
A hemisphere set of surfaces.
The set of surfaces holds right and left hemipshere surfaces
Definition at line 71 of file surfaceset.h.
typedef QSharedPointer<const SurfaceSet> FSLIB::SurfaceSet::ConstSPtr |
Const shared pointer type for SurfaceSet class.
Definition at line 75 of file surfaceset.h.
typedef QSharedPointer<SurfaceSet> FSLIB::SurfaceSet::SPtr |
Shared pointer type for SurfaceSet class.
Definition at line 74 of file surfaceset.h.
SurfaceSet::SurfaceSet | ( | ) |
Default constructor
Definition at line 60 of file surfaceset.cpp.
|
explicit |
Construts the surface set by reading it of the given files.
[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. |
Definition at line 66 of file surfaceset.cpp.
|
explicit |
Construts the surface set by reading it of the given files.
[in] | path | path to surface directory. |
[in] | hemi | Which hemisphere to load {0 -> lh, 1 -> rh, 2 -> both}. |
[in] | surf | Name of the surface to load (eg. inflated, orig ...). |
Definition at line 87 of file surfaceset.cpp.
Constructs a surface set by assembling given surfaces
[in] | p_LHSurface | Left hemisphere surface. |
[in] | p_RHSurface | Right hemisphere surface. |
Definition at line 108 of file surfaceset.cpp.
|
explicit |
Constructs an annotation set by reading from annotation files
[in] | p_sLHFileName | Left hemisphere annotation file. |
[in] | p_sRHFileName | Right hemisphere annotation file. |
Definition at line 125 of file surfaceset.cpp.
SurfaceSet::~SurfaceSet | ( | ) |
Destroys the SurfaceSet class.
Definition at line 134 of file surfaceset.cpp.
void SurfaceSet::clear | ( | ) |
Initializes the AnnotationSet.
Definition at line 140 of file surfaceset.cpp.
|
inline |
Returns The surface set map
Definition at line 240 of file surfaceset.h.
void SurfaceSet::insert | ( | const Surface & | p_Surface | ) |
Insert a surface
[in] | p_Surface | Surface to insert. |
Definition at line 147 of file surfaceset.cpp.
|
inline |
True if SurfaceSet is empty.
Definition at line 247 of file surfaceset.h.
Surface & SurfaceSet::operator[] | ( | qint32 | idx | ) |
Subscript operator [] to access surface by index
[in] | idx | the hemisphere index (0 or 1). |
Definition at line 203 of file surfaceset.cpp.
const Surface & SurfaceSet::operator[] | ( | qint32 | idx | ) | const |
Subscript operator [] to access surface by index
[in] | idx | the hemisphere index (0 or 1). |
Definition at line 188 of file surfaceset.cpp.
Surface & SurfaceSet::operator[] | ( | QString | idt | ) |
Subscript operator [] to access surface by identifier
[in] | idt | the hemisphere identifier ("lh" or "rh"). |
Definition at line 233 of file surfaceset.cpp.
const Surface & SurfaceSet::operator[] | ( | QString | idt | ) | const |
Subscript operator [] to access surface by identifier
[in] | idt | the hemisphere identifier ("lh" or "rh"). |
Definition at line 218 of file surfaceset.cpp.
|
static |
Reads different surface files and assembles them to a SurfaceSet
[in] | p_sLHFileName | Left hemisphere surface file. |
[in] | p_sRHFileName | Right hemisphere surface file. |
[out] | p_SurfaceSet | The read surface set. |
Definition at line 160 of file surfaceset.cpp.
|
inline |
Returns number of loaded hemispheres
Definition at line 264 of file surfaceset.h.
|
inline |
The kind of Surfaces which are held by the SurfaceSet (eg. inflated, orig ...)
Definition at line 254 of file surfaceset.h.