25 #ifndef WMREADDIPOLES_H
26 #define WMREADDIPOLES_H
34 #include "core/kernel/WModule.h"
35 #include "core/kernel/WModuleInputData.h"
36 #include "core/kernel/WModuleOutputData.h"
68 virtual const std::string
getName()
const;
82 virtual std::shared_ptr< WModule >
factory()
const;
119 std::shared_ptr< WDataSetDipoles >
readFiles( std::vector< std::string > filenames );
131 void readFile( std::string filename,
133 std::vector< float >* times,
134 std::vector< float >* magnitudes,
135 size_t* firstTimeStep,
136 size_t* lastTimeStep );
144 std::shared_ptr< WDataSetDipoles >
readMetaData( std::string filename );
149 std::shared_ptr< WModuleOutputData< WDataSetDipoles > >
m_dipoles;
Represents a dipole dataset.
Someone should add some documentation here.
virtual ~WMReadDipoles()
Destructs the reader.
WPropFilename m_dataFile
The data will be read from this file.
void readFile(std::string filename, WPosition *pos, std::vector< float > *times, std::vector< float > *magnitudes, size_t *firstTimeStep, size_t *lastTimeStep)
Function doing the actual reading from one file.
std::shared_ptr< WCondition > m_propCondition
A condition used to notify about changes in several properties.
virtual const std::string getName() const
Gives back the name of this module.
virtual const char ** getXPMIcon() const
Get the icon for this module in XPM format.
std::shared_ptr< WModuleOutputData< WDataSetDipoles > > m_dipoles
Output connector for dipoles of EEG data.
std::shared_ptr< WDataSetDipoles > m_dataSet
Pointer to the loaded dataset.
WPropBool m_metaFile
Use meta file containing fileNames.
virtual const std::string getDescription() const
Gives back a description of this module.
virtual void moduleMain()
Entry point after loading the module.
virtual void connectors()
Initialize the connectors this module is using.
virtual void requirements()
Initialize requirements for this module.
virtual void properties()
Initialize the properties for this module.
virtual std::shared_ptr< WModule > factory() const
Due to the prototype design pattern used to build modules, this method returns a new instance of this...
WMReadDipoles()
Simple constructor.
std::shared_ptr< WDataSetDipoles > readFiles(std::vector< std::string > filenames)
Function that composes the data read by readFile() from the different files to one WDataSetDipoles.
std::shared_ptr< WDataSetDipoles > readMetaData(std::string filename)
Function reading meta file with filenames of dipole files.
Class representing a single module of OpenWalnut.
This only is a 3d double vector.