25 #ifndef WMDATACREATORVECTOR_H
26 #define WMDATACREATORVECTOR_H
31 #include "WDataSetSingleCreatorInterface.h"
32 #include "core/common/WObjectNDIP.h"
33 #include "core/common/WStrategyHelper.h"
34 #include "core/dataHandler/WDataHandlerEnums.h"
35 #include "core/dataHandler/WDataSetVector.h"
36 #include "core/dataHandler/WValueSetBase.h"
37 #include "core/kernel/WModule.h"
38 #include "core/kernel/WModuleOutputData.h"
62 virtual const std::string
getName()
const;
76 virtual std::shared_ptr< WModule >
factory()
const;
131 std::shared_ptr< WModuleOutputData< WDataSetVector > >
m_output;
std::shared_ptr< const WGridRegular3DTemplate > ConstSPtr
Convenience typedef for a std::shared_ptr< const WGridRegular3DTemplate >.
Define the interface which is injected into an WObjectNDIP.
virtual ~DataCreatorInterface()
Destructor.
virtual WValueSetBase::SPtr operator()(WProgress::SPtr progress, WGridRegular3D::ConstSPtr grid, dataType type=W_DT_FLOAT)=0
Create the dataset.
Module which utilizes the strategy pattern to provide a multitude of dataset creation algorithms for ...
WMDataCreatorVector()
Standard constructor.
std::shared_ptr< WCondition > m_propCondition
A condition used to notify about changes in several properties.
~WMDataCreatorVector()
Destructor.
virtual void connectors()
Initialize the connectors this module is using.
WPropInt m_nbVoxelsX
number of voxels in x direction
virtual void properties()
Initialize the properties for this module.
WPropPosition m_size
where to put the origin
WPropInt m_nbVoxelsY
number of voxels in y direction
virtual const std::string getDescription() const
Gives back a description of this module.
std::shared_ptr< WModuleOutputData< WDataSetVector > > m_output
The only output of this module.
virtual const char ** getXPMIcon() const
Get the icon for this module in XPM format.
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...
virtual const std::string getName() const
Gives back the name of this module.
WStrategyHelper< WObjectNDIP< WDataSetSingleCreatorInterface > > m_strategy
the strategy currently active.
virtual void moduleMain()
Entry point after loading the module.
WPropInt m_nbVoxelsZ
number of voxels in z direction
WPropSelection m_valueType
the datatype of the valueset
WPropPosition m_origin
where to put the origin
Class representing a single module of OpenWalnut.
std::shared_ptr< WProgress > SPtr
Shared pointer on a WProgress.
This class allows for an easy strategy pattern-based switching between properties and strategy instan...
std::shared_ptr< WValueSetBase > SPtr
Shared pointer to an instance of this class.
dataType
Data types and number values taken from the nifti1.h, at this point it's unknown if it makes sense to...