MNE-CPP
beta 1.0
|
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 83 of file surfaceset.h.
typedef QSharedPointer<const SurfaceSet> FSLIB::SurfaceSet::ConstSPtr |
Const shared pointer type for SurfaceSet class.
Definition at line 87 of file surfaceset.h.
typedef QSharedPointer<SurfaceSet> FSLIB::SurfaceSet::SPtr |
Shared pointer type for SurfaceSet class.
Definition at line 86 of file surfaceset.h.
SurfaceSet::SurfaceSet | ( | ) |
Default constructor
Definition at line 59 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 67 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 89 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 111 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 129 of file surfaceset.cpp.
SurfaceSet::~SurfaceSet | ( | ) |
Destroys the SurfaceSet class.
Definition at line 139 of file surfaceset.cpp.
void SurfaceSet::clear | ( | ) |
Initializes the AnnotationSet.
Definition at line 146 of file surfaceset.cpp.
|
inline |
void SurfaceSet::insert | ( | const Surface & | p_Surface | ) |
Insert a surface
[in] | p_Surface | Surface to insert |
Definition at line 154 of file surfaceset.cpp.
|
inline |
True if SurfaceSet is empty.
Definition at line 261 of file surfaceset.h.
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 197 of file surfaceset.cpp.
Surface & SurfaceSet::operator[] | ( | qint32 | idx | ) |
Subscript operator [] to access surface by index
[in] | idx | the hemisphere index (0 or 1). |
Definition at line 213 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 229 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 245 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 168 of file surfaceset.cpp.
|
inline |
Returns number of loaded hemispheres
Definition at line 280 of file surfaceset.h.
|
inline |
The kind of Surfaces which are held by the SurfaceSet (eg. inflated, orig ...)
Definition at line 269 of file surfaceset.h.