OpenWalnut
1.4.0
|
Class which contains EEG recording data, read from a WPagerEEG. More...
#include <WEEG2.h>
Public Member Functions | |
WEEG2 (boost::shared_ptr< WPagerEEG > pager, boost::shared_ptr< WEEGPositionsLibrary > positionsLibrary) | |
Constructor. | |
WEEG2 () | |
Constructor creating a quite unusable instance. | |
std::size_t | getNumberOfSegments () const |
Get the number of segments this EEG consists of. | |
std::size_t | getNumberOfChannels () const |
Get the number of channels this EEG has. | |
double | getSamplingRate () const |
Get the sampling rate used by the recording. | |
boost::shared_ptr< WEEG2Segment > | getSegment (std::size_t segmentID) const |
Get one segment. | |
boost::shared_ptr < WEEGChannelInfo > | getChannelInfo (std::size_t channelID) const |
Get one channel info object. | |
virtual const std::string | getName () const |
Return the name of the dataset. | |
virtual const std::string | getDescription () const |
Description of dataset. | |
![]() | |
WRecording () | |
Empty standard constructor for recordings. | |
![]() | |
WDataSet () | |
This constructor should be used if a dataSet does not stem from a file. | |
virtual | ~WDataSet () |
Since WDataSet is a base class and thus should be polymorphic we add virtual destructor. | |
void | setFilename (const std::string filename) |
Set the name of the file that this data set stems from. | |
std::string | getFilename () const |
Get the name of the file that this data set stems from. | |
OW_API_DEPRECATED void | setFileName (const std::string filename) |
Set the name of the file that this data set stems from. | |
OW_API_DEPRECATED std::string | getFileName () const |
Get the name of the file that this data set stems from. | |
virtual bool | isTexture () const |
Determines whether this dataset can be used as a texture. | |
virtual boost::shared_ptr < WDataSetVector > | isVectorDataSet () |
Checks if this dataset is a vector dataset. | |
virtual osg::ref_ptr < WDataTexture3D > | getTexture () const |
Returns the texture- representation of the dataset. | |
boost::shared_ptr< WProperties > | getProperties () const |
Return a pointer to the properties object of the dataset. | |
boost::shared_ptr< WProperties > | getInformationProperties () const |
Return a pointer to the information properties object of the dataset. | |
![]() | |
WTransferable () | |
Default constructor. | |
virtual | ~WTransferable () |
Destructor. | |
![]() | |
WPrototyped () | |
Default constructor. | |
virtual | ~WPrototyped () |
Destructor. | |
template<typename T > | |
bool | isA () |
Checks whether the actual prototype has the specified runtime type. |
Static Public Member Functions | |
static boost::shared_ptr < WPrototyped > | getPrototype () |
Get dataset prototype. |
Static Protected Attributes | |
static boost::shared_ptr < WPrototyped > | m_prototype = boost::shared_ptr< WPrototyped >() |
Prototype needed to allow the EEG dataset to be transferred. | |
![]() | |
static boost::shared_ptr < WPrototyped > | m_prototype = boost::shared_ptr< WPrototyped >() |
The prototype as singleton. | |
![]() | |
static boost::shared_ptr < WPrototyped > | m_prototype = boost::shared_ptr< WPrototyped >() |
The prototype as singleton. |
Private Attributes | |
double | m_samplingRate |
sampling rate used by the recording | |
std::vector< boost::shared_ptr < WEEG2Segment > > | m_segments |
list of all segments this EEG consists of | |
std::vector< boost::shared_ptr < WEEGChannelInfo > > | m_channelInfos |
list of the information about all channel infos this EEG has |
Additional Inherited Members | |
![]() | |
typedef boost::shared_ptr < WDataSet > | SPtr |
Shared pointer abbreviation to a instance of this class. | |
typedef boost::shared_ptr < const WDataSet > | ConstSPtr |
Shared pointer abbreviation to a const instance of this class. | |
![]() | |
static const unsigned int | MAX_RECORDING_CHANNELS = 1024 |
Maximum number of channels for a certain modality. | |
static const unsigned int | MAX_RECORDING_SAMPLES = 4294967295U |
Maximum number of samples of a recording. | |
static const unsigned int | MAX_RECORDING_SEGMENTS = 128 |
Maximum number of segments of a recording. | |
static const unsigned int | MAX_RECORDING_SAMPLING_FREQUENCY = 20000 |
Maximum samplimg frequency of a recording. | |
![]() | |
boost::shared_ptr< WProperties > | m_properties |
The property object for the dataset. | |
boost::shared_ptr< WProperties > | m_infoProperties |
The property object for the dataset containing only props whose purpose is "PV_PURPOSE_INFORMNATION". |
Class which contains EEG recording data, read from a WPagerEEG.
WEEG2::WEEG2 | ( | boost::shared_ptr< WPagerEEG > | pager, |
boost::shared_ptr< WEEGPositionsLibrary > | positionsLibrary | ||
) |
Constructor.
pager | pager class which contains the data, read from a file on demand |
positionsLibrary | class which contains the positions of the electrodes |
Definition at line 44 of file WEEG2.cpp.
References m_channelInfos, m_samplingRate, m_segments, WRecording::MAX_RECORDING_CHANNELS, WRecording::MAX_RECORDING_SAMPLING_FREQUENCY, WRecording::MAX_RECORDING_SEGMENTS, and WDataSet::setFilename().
WEEG2::WEEG2 | ( | ) |
Constructor creating a quite unusable instance.
Useful for prototype mechanism.
Definition at line 89 of file WEEG2.cpp.
Referenced by getPrototype().
boost::shared_ptr< WEEGChannelInfo > WEEG2::getChannelInfo | ( | std::size_t | channelID | ) | const |
Get one channel info object.
channelID | number of channel |
Definition at line 120 of file WEEG2.cpp.
References m_channelInfos.
|
virtual |
|
virtual |
std::size_t WEEG2::getNumberOfChannels | ( | ) | const |
Get the number of channels this EEG has.
Definition at line 98 of file WEEG2.cpp.
References m_channelInfos.
std::size_t WEEG2::getNumberOfSegments | ( | ) | const |
Get the number of segments this EEG consists of.
Definition at line 93 of file WEEG2.cpp.
References m_segments.
|
static |
Get dataset prototype.
Reimplemented from WRecording.
Definition at line 142 of file WEEG2.cpp.
References m_prototype, and WEEG2().
double WEEG2::getSamplingRate | ( | ) | const |
Get the sampling rate used by the recording.
Definition at line 103 of file WEEG2.cpp.
References m_samplingRate.
boost::shared_ptr< WEEG2Segment > WEEG2::getSegment | ( | std::size_t | segmentID | ) | const |
Get one segment.
segmentID | number of segment |
Definition at line 108 of file WEEG2.cpp.
References m_segments.
|
private |
list of the information about all channel infos this EEG has
Definition at line 135 of file WEEG2.h.
Referenced by getChannelInfo(), getNumberOfChannels(), and WEEG2().
|
staticprotected |
Prototype needed to allow the EEG dataset to be transferred.
Definition at line 128 of file WEEG2.h.
Referenced by getPrototype().
|
private |
sampling rate used by the recording
Definition at line 131 of file WEEG2.h.
Referenced by getSamplingRate(), and WEEG2().
|
private |
list of all segments this EEG consists of
Definition at line 133 of file WEEG2.h.
Referenced by getNumberOfSegments(), getSegment(), and WEEG2().