25 #ifndef WMCALCULATEHISTOGRAM_H
26 #define WMCALCULATEHISTOGRAM_H
31 #include "core/dataHandler/WDataSetHistogram1D.h"
32 #include "core/kernel/WModule.h"
33 #include "core/kernel/WModuleInputData.h"
34 #include "core/kernel/WModuleOutputData.h"
58 virtual const std::string
getName()
const;
72 virtual std::shared_ptr< WModule >
factory()
const;
109 std::shared_ptr< WModuleInputData< WDataSetSingle > >
m_dataInput;
115 std::shared_ptr< WDataSetSingle >
m_data;
Calculates a histogram from WDataSetSingle.
virtual void connectors()
Initialize the connectors this module is using.
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...
std::shared_ptr< WCondition > m_propCondition
A property condition used to notify of changes in the properties.
virtual void moduleMain()
Entry point after loading the module.
virtual ~WMCalculateHistogram()
Destructor.
void updateOutput()
Calculate the histogram and update the output.
WPropInt m_histogramBins
A property for the number of bins in the histogram.
std::shared_ptr< WModuleInputData< WDataSetSingle > > m_dataInput
The input connector for the data.
virtual const char ** getXPMIcon() const
Get the icon for this module in XPM format.
std::shared_ptr< WModuleOutputData< WDataSetHistogram1D > > m_histogramOutput
The output for the histogram.
WMCalculateHistogram()
Constructor.
std::shared_ptr< WDataSetSingle > m_data
The current input data.
virtual const std::string getDescription() const
Gives back a description of this module.
virtual const std::string getName() const
Gives back the name of this module.
virtual void properties()
Initialize the properties for this module.
virtual void requirements()
Initialize requirements for this module.
Class representing a single module of OpenWalnut.