35 #include <osg/Uniform>
37 #include "core/dataHandler/WDataSetScalar.h"
38 #include "core/kernel/WModule.h"
39 #include "core/kernel/WModuleInputData.h"
67 virtual const std::string
getName()
const;
81 virtual std::shared_ptr< WModule >
factory()
const;
114 std::shared_ptr< WModuleInputData< WDataSetScalar > >
m_dataInput;
115 std::shared_ptr< WModuleInputData< WDataSetScalar > >
m_maskInput;
116 std::shared_ptr< WModuleOutputData< WDataSetScalar > >
m_output;
119 std::shared_ptr< WDataSetScalar >
m_mask;
Set all voxels in a dataset to zero if the other dataset is zero there.
WMApplyMask()
Standard constructor.
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< WDataSetScalar > m_dataSet
Pointer providing access to the data set in the whole module.
virtual void connectors()
Initialize the connectors this module is using.
std::shared_ptr< WModuleInputData< WDataSetScalar > > m_dataInput
Input connector for getting the data.
virtual void moduleMain()
Entry point after loading the module.
virtual const char ** getXPMIcon() const
Get the icon for this module in XPM format.
virtual void properties()
Initialize the properties for this module.
std::shared_ptr< WDataSetScalar > m_mask
Pointer providing access to the mask in the whole module.
void applyMask(std::shared_ptr< WValueSet< T > > valSet, dataType type)
Apply the mask to the data.
virtual const std::string getName() const
Gives back the name of this module.
virtual const std::string getDescription() const
Gives back a description of this module.
~WMApplyMask()
Destructor.
std::shared_ptr< WModuleInputData< WDataSetScalar > > m_maskInput
Input connector for getting the mask.
std::shared_ptr< WModuleOutputData< WDataSetScalar > > m_output
The only output of this mask module.
std::shared_ptr< WDataSetScalar > m_dataSetOut
Pointer providing access to the resulting data set in the whole module.
Class representing a single module of OpenWalnut.
Class to handle events with a pick.
Base Class for all value set types.
dataType
Data types and number values taken from the nifti1.h, at this point it's unknown if it makes sense to...