MNE-CPP
0.1.9
A Framework for Electrophysiology
|
Holds a set of digitizer points. More...
#include <fiff_dig_point_set.h>
Public Types | |
typedef QSharedPointer< FiffDigPointSet > | SPtr |
typedef QSharedPointer< const FiffDigPointSet > | ConstSPtr |
Public Member Functions | |
FiffDigPointSet () | |
FiffDigPointSet (const FiffDigPointSet &p_FiffDigPointSet) | |
FiffDigPointSet (QList< FIFFLIB::FiffDigPoint > pointList) | |
FiffDigPointSet (QIODevice &p_IODevice) | |
~FiffDigPointSet () | |
void | clear () |
bool | isEmpty () const |
qint32 | size () const |
void | write (QIODevice &p_IODevice) |
write More... | |
void | writeToStream (FiffStream *p_pStream) |
writeToStream More... | |
const FiffDigPoint & | operator[] (qint32 idx) const |
FiffDigPoint & | operator[] (qint32 idx) |
FiffDigPointSet | pickTypes (QList< int > includeTypes) const |
FiffDigPointSet & | operator<< (const FiffDigPoint &dig) |
FiffDigPointSet & | operator<< (const FiffDigPoint *dig) |
void | applyTransform (const FiffCoordTrans &coordTrans, bool bApplyInverse=false) |
QList< FiffDigPoint > | getList () |
Static Public Member Functions | |
static bool | readFromStream (FiffStream::SPtr &p_Stream, FiffDigPointSet &p_Dig) |
Holds a set of digitizer points.
The FiffDigPointSet hold a set of Digitizer Points and read, write and transform function.
Definition at line 83 of file fiff_dig_point_set.h.
typedef QSharedPointer<const FiffDigPointSet> FIFFLIB::FiffDigPointSet::ConstSPtr |
Const shared pointer type for FiffDigPointSet.
Definition at line 88 of file fiff_dig_point_set.h.
typedef QSharedPointer<FiffDigPointSet> FIFFLIB::FiffDigPointSet::SPtr |
Shared pointer type for FiffDigPointSet.
Definition at line 87 of file fiff_dig_point_set.h.
FiffDigPointSet::FiffDigPointSet | ( | ) |
Constructs a FiffDigPointSet object.
Definition at line 74 of file fiff_dig_point_set.cpp.
FiffDigPointSet::FiffDigPointSet | ( | const FiffDigPointSet & | p_FiffDigPointSet | ) |
Copy constructor.
[in] | p_FiffDigPointSet. |
Definition at line 81 of file fiff_dig_point_set.cpp.
FiffDigPointSet::FiffDigPointSet | ( | QList< FIFFLIB::FiffDigPoint > | pointList | ) |
Construct FiffDigPointSet based on input pointList
[in] | pointList | list of digitizer points |
Definition at line 88 of file fiff_dig_point_set.cpp.
FiffDigPointSet::FiffDigPointSet | ( | QIODevice & | p_IODevice | ) |
Default constructor
Definition at line 95 of file fiff_dig_point_set.cpp.
FiffDigPointSet::~FiffDigPointSet | ( | ) |
Destroys the FiffDigPointSet
Definition at line 112 of file fiff_dig_point_set.cpp.
void FiffDigPointSet::applyTransform | ( | const FiffCoordTrans & | coordTrans, |
bool | bApplyInverse = false |
||
) |
Apply a transforamtion matrix on the 3D position of the digitzed points.
[in] | coordTrans | FiffCoordTrans which is to be applied. |
[in] | bApplyInverse | Whether to apply the inverse. False by default. |
Definition at line 287 of file fiff_dig_point_set.cpp.
|
inline |
Initializes FiffDigPointSet
Definition at line 257 of file fiff_dig_point_set.h.
QList< FiffDigPoint > FiffDigPointSet::getList | ( | ) |
Returns list of digitizer point the set contains
Definition at line 308 of file fiff_dig_point_set.cpp.
|
inline |
True if FiffDigPointSet is empty.
Definition at line 264 of file fiff_dig_point_set.h.
FiffDigPointSet & FiffDigPointSet::operator<< | ( | const FiffDigPoint & | dig | ) |
Subscript operator << to add a new FiffDigPoint
[in] | dig | FiffDigPoint to be added. |
Definition at line 271 of file fiff_dig_point_set.cpp.
FiffDigPointSet & FiffDigPointSet::operator<< | ( | const FiffDigPoint * | dig | ) |
Subscript operator << to add a new FiffDigPoint
[in] | dig | FiffDigPoint to be added. |
Definition at line 279 of file fiff_dig_point_set.cpp.
FiffDigPoint & FiffDigPointSet::operator[] | ( | qint32 | idx | ) |
Subscript operator [] to access FiffDigPoint by index
[in] | idx | the FiffDigPoint index. |
Definition at line 244 of file fiff_dig_point_set.cpp.
const FiffDigPoint & FiffDigPointSet::operator[] | ( | qint32 | idx | ) | const |
Subscript operator [] to access FiffDigPoint by index
[in] | idx | the FiffDigPoint index. |
Definition at line 232 of file fiff_dig_point_set.cpp.
FiffDigPointSet FiffDigPointSet::pickTypes | ( | QList< int > | includeTypes | ) | const |
Pick the wanted types from this set and returns them
[in] | includeTypes | The include types (FIFFV_POINT_HPI, FIFFV_POINT_CARDINAL, FIFFV_POINT_EEG, FIFFV_POINT_ECG, FIFFV_POINT_EXTRA, FIFFV_POINT_LPA, FIFFV_POINT_NASION, FIFFV_POINT_RPA). |
Definition at line 256 of file fiff_dig_point_set.cpp.
|
static |
Reads FiffDigPointSet from a fif file
+[[]in,out] | p_Stream The opened fif file. | |
[in,out] | p_Dig | The read digitizer point set. |
Definition at line 118 of file fiff_dig_point_set.cpp.
|
inline |
Returns the number of stored FiffDigPoints
Definition at line 271 of file fiff_dig_point_set.h.
void FiffDigPointSet::write | ( | QIODevice & | p_IODevice | ) |
void FiffDigPointSet::writeToStream | ( | FiffStream * | p_pStream | ) |