OpenWalnut  1.5.0dev
Public Member Functions | Private Attributes | List of all members
WEEGEvent Class Reference

A special time position in an EEG recording with corresponding data. More...

#include <WEEGEvent.h>

+ Collaboration diagram for WEEGEvent:

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< WGEGroupNodem_parentNode
 parent node, where m_node is inserted and removed from More...
 

Detailed Description

A special time position in an EEG recording with corresponding data.

Definition at line 44 of file WEEGEvent.h.

Constructor & Destructor Documentation

◆ WEEGEvent() [1/2]

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.

Parameters
timetime position in seconds
yPosy position in pixels
eegpointer to the loaded EEG dataset
segmentIDnumber of the segment
parentNodenode where m_node is inserted and removed from
snapToDipolewhether the selected time position should be snapped to an active dipole
proofOfConceptwhether we only show the proof of concept or the real dipoles
dipolespointer 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().

+ Here is the call graph for this function:

◆ WEEGEvent() [2/2]

WEEGEvent::WEEGEvent ( )

Constructor for an empty event.

Definition at line 168 of file WEEGEvent.cpp.

◆ ~WEEGEvent()

WEEGEvent::~WEEGEvent ( )

Destructor, removing m_node from m_parentNode.

Definition at line 173 of file WEEGEvent.cpp.

References m_node, and m_parentNode.

Member Function Documentation

◆ getTime()

double WEEGEvent::getTime ( ) const

Get the time position.

Returns
time position in seconds

Definition at line 181 of file WEEGEvent.cpp.

References m_time.

◆ getValues()

const std::vector< double > & WEEGEvent::getValues ( ) const

Get the value of each channel at the time position.

Returns
values as reference to a vector

Definition at line 186 of file WEEGEvent.cpp.

References m_values.

Member Data Documentation

◆ m_node

osg::ref_ptr< osg::Node > WEEGEvent::m_node
private

OSG node representing the event.

Definition at line 98 of file WEEGEvent.h.

Referenced by WEEGEvent(), and ~WEEGEvent().

◆ m_parentNode

osg::ref_ptr< WGEGroupNode > WEEGEvent::m_parentNode
private

parent node, where m_node is inserted and removed from

Definition at line 100 of file WEEGEvent.h.

Referenced by WEEGEvent(), and ~WEEGEvent().

◆ m_time

double WEEGEvent::m_time
private

time position in seconds

Definition at line 94 of file WEEGEvent.h.

Referenced by getTime(), and WEEGEvent().

◆ m_values

std::vector< double > WEEGEvent::m_values
private

the value of each channel at the given time position

Definition at line 96 of file WEEGEvent.h.

Referenced by getValues(), and WEEGEvent().


The documentation for this class was generated from the following files: