25 #ifndef WMDATASETMANIPULATOR_H
26 #define WMDATASETMANIPULATOR_H
31 #include "core/common/WObjectNDIP.h"
32 #include "core/common/WStrategyHelper.h"
33 #include "core/dataHandler/WDataSet.h"
34 #include "core/kernel/WModule.h"
35 #include "core/kernel/WModuleInputData.h"
36 #include "core/kernel/WModuleOutputData.h"
37 #include "WManipulatorInterface.h"
61 virtual const std::string
getName()
const;
75 virtual std::shared_ptr< WModule >
factory()
const;
130 std::shared_ptr< WModuleInputData< WDataSet > >
m_input;
133 std::shared_ptr< WModuleOutputData< WDataSet > >
m_output;
Module allowing manipulation of the dataset scaling, orientation and position.
std::shared_ptr< WModuleOutputData< WDataSet > > m_output
An output connector for the transformed dataset.
std::shared_ptr< WCondition > m_propCondition
A condition for property updates.
std::shared_ptr< WDataSet > m_data
The current data.
WMatrixFixed< double, 4, 4 > m_currentMat
The current transformation.
virtual const char ** getXPMIcon() const
Get the icon for this module in XPM format.
virtual void connectors()
Initialize the connectors this module is using.
WPropTrigger m_applyTrigger
A trigger to add the transformation from the currently active strategy to the current transformation.
virtual void properties()
Initialize the properties for this module.
WPropTrigger m_resetTrigger
A trigger to reset the current transformation to the initial one.
virtual void moduleMain()
Entry point after loading the 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...
std::shared_ptr< WModuleInputData< WDataSet > > m_input
An input connector that accepts any dataset.
WStrategyHelper< WObjectNDIP< WManipulatorInterface > > m_strategy
The strategy to use for dataset transformation manipulation.
virtual const std::string getName() const
Gives back the name of this module.
std::shared_ptr< WDataSet > transformData(WMatrixFixed< double, 4, 4 > const &mat)
Transform the data using the provided transformation matrix.
void initMatrix()
Init the matrix to be applied from the transformations stored in the current dataset.
virtual const std::string getDescription() const
Gives back a description of this module.
WMDatasetManipulator()
Constructor.
virtual ~WMDatasetManipulator()
Destructor.
Class representing a single module of OpenWalnut.
This class allows for an easy strategy pattern-based switching between properties and strategy instan...