OpenWalnut
1.5.0dev
|
A special time position in an EEG recording with corresponding data. More...
#include <WEEGEvent.h>
Public Member Functions | |
WEEGEvent (double time, double yPos, std::shared_ptr< WEEG2 > eeg, std::size_t segmentID, osg::ref_ptr< WGEGroupNode > parentNode, bool snapToDipole, bool proofOfConcept, std::shared_ptr< WDataSetDipoles > dipoles) | |
Constructor. More... | |
WEEGEvent () | |
Constructor for an empty event. More... | |
~WEEGEvent () | |
Destructor, removing m_node from m_parentNode. More... | |
double | getTime () const |
Get the time position. More... | |
const std::vector< double > & | getValues () const |
Get the value of each channel at the time position. More... | |
Private Attributes | |
double | m_time |
time position in seconds More... | |
std::vector< double > | m_values |
the value of each channel at the given time position More... | |
osg::ref_ptr< osg::Node > | m_node |
OSG node representing the event. More... | |
osg::ref_ptr< WGEGroupNode > | m_parentNode |
parent node, where m_node is inserted and removed from More... | |
A special time position in an EEG recording with corresponding data.
Definition at line 44 of file WEEGEvent.h.
WEEGEvent::WEEGEvent | ( | double | time, |
double | yPos, | ||
std::shared_ptr< WEEG2 > | eeg, | ||
std::size_t | segmentID, | ||
osg::ref_ptr< WGEGroupNode > | parentNode, | ||
bool | snapToDipole, | ||
bool | proofOfConcept, | ||
std::shared_ptr< WDataSetDipoles > | dipoles | ||
) |
Constructor.
time | time position in seconds |
yPos | y position in pixels |
eeg | pointer to the loaded EEG dataset |
segmentID | number of the segment |
parentNode | node where m_node is inserted and removed from |
snapToDipole | whether the selected time position should be snapped to an active dipole |
proofOfConcept | whether we only show the proof of concept or the real dipoles |
dipoles | pointer to the loaded dipoles dataset |
Definition at line 49 of file WEEGEvent.cpp.
References m_node, m_parentNode, m_time, m_values, and string_utils::toString().
WEEGEvent::WEEGEvent | ( | ) |
Constructor for an empty event.
Definition at line 168 of file WEEGEvent.cpp.
WEEGEvent::~WEEGEvent | ( | ) |
Destructor, removing m_node from m_parentNode.
Definition at line 173 of file WEEGEvent.cpp.
References m_node, and m_parentNode.
double WEEGEvent::getTime | ( | ) | const |
Get the time position.
Definition at line 181 of file WEEGEvent.cpp.
References m_time.
const std::vector< double > & WEEGEvent::getValues | ( | ) | const |
Get the value of each channel at the time position.
Definition at line 186 of file WEEGEvent.cpp.
References m_values.
|
private |
OSG node representing the event.
Definition at line 98 of file WEEGEvent.h.
Referenced by WEEGEvent(), and ~WEEGEvent().
|
private |
parent node, where m_node is inserted and removed from
Definition at line 100 of file WEEGEvent.h.
Referenced by WEEGEvent(), and ~WEEGEvent().
|
private |
time position in seconds
Definition at line 94 of file WEEGEvent.h.
Referenced by getTime(), and WEEGEvent().
|
private |
the value of each channel at the given time position
Definition at line 96 of file WEEGEvent.h.
Referenced by getValues(), and WEEGEvent().