25 #ifndef WMSPATIALDERIVATIVE_H
26 #define WMSPATIALDERIVATIVE_H
31 #include "core/dataHandler/WDataSetScalar.h"
32 #include "core/dataHandler/WDataSetVector.h"
33 #include "core/kernel/WModule.h"
34 #include "core/kernel/WModuleInputData.h"
35 #include "core/kernel/WModuleOutputData.h"
59 virtual const std::string
getName()
const;
73 virtual std::shared_ptr< WModule >
factory()
const;
101 std::shared_ptr< WModuleInputData< WDataSetScalar > >
m_scalarIn;
106 std::shared_ptr< WModuleOutputData< WDataSetVector > >
m_vectorOut;
124 template<
typename T >
125 void derive( std::shared_ptr< WGridRegular3D > grid, std::shared_ptr<
WValueSet< T > > values );
This modules takes a dataset and derives it spatially.
virtual const std::string getName() const
Gives back the name of this module.
std::shared_ptr< WModuleInputData< WDataSetScalar > > m_scalarIn
An input connector used to get datasets from other modules.
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...
WMSpatialDerivative()
Default constructor.
virtual const char ** getXPMIcon() const
Get the icon for this module in XPM format.
std::shared_ptr< WCondition > m_propCondition
A condition used to notify about changes in several properties.
virtual void connectors()
Initialize the connectors this module is using.
virtual void moduleMain()
Entry point after loading the module.
std::shared_ptr< WModuleOutputData< WDataSetVector > > m_vectorOut
The output connector used to provide the calculated data to other modules.
void derive(std::shared_ptr< WGridRegular3D > grid, std::shared_ptr< WValueSet< T > > values)
Derives the specified scalar data set spatially and creates a new vector value set.
virtual const std::string getDescription() const
Gives back a description of this module.
virtual ~WMSpatialDerivative()
Destructor.
virtual void properties()
Initialize the properties for this module.
WPropBool m_normalize
If true, the vectors get normalized.
Class representing a single module of OpenWalnut.
Base Class for all value set types.