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

Class which contains the positions of EEG electrodes by label. More...

#include <WEEGPositionsLibrary.h>

+ Collaboration diagram for WEEGPositionsLibrary:

Public Member Functions

 WEEGPositionsLibrary (const std::map< std::string, WPosition > &positions)
 Constructor. More...
 
WPosition getPosition (std::string label) const
 Get the position of an electrode with the given label. More...
 

Private Attributes

std::map< std::string, WPositionm_positions
 mapping from labels to positions More...
 

Detailed Description

Class which contains the positions of EEG electrodes by label.

Definition at line 40 of file WEEGPositionsLibrary.h.

Constructor & Destructor Documentation

◆ WEEGPositionsLibrary()

WEEGPositionsLibrary::WEEGPositionsLibrary ( const std::map< std::string, WPosition > &  positions)
explicit

Constructor.

Parameters
positionsmapping from labels to positions

Definition at line 34 of file WEEGPositionsLibrary.cpp.

References m_positions, and string_utils::toUpper().

+ Here is the call graph for this function:

Member Function Documentation

◆ getPosition()

WPosition WEEGPositionsLibrary::getPosition ( std::string  label) const

Get the position of an electrode with the given label.

Parameters
labellabel of the electrode
Returns
position of the electrode

Definition at line 43 of file WEEGPositionsLibrary.cpp.

References m_positions, and string_utils::toUpper().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_positions

std::map< std::string, WPosition > WEEGPositionsLibrary::m_positions
private

mapping from labels to positions

Definition at line 60 of file WEEGPositionsLibrary.h.

Referenced by getPosition(), and WEEGPositionsLibrary().


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