25 #ifndef WMFIBERSELECTION_H
26 #define WMFIBERSELECTION_H
33 #include "core/dataHandler/WDataSetFibers.h"
34 #include "core/dataHandler/datastructures/WFiberCluster.h"
35 #include "core/kernel/WModule.h"
36 #include "core/kernel/WModuleInputData.h"
37 #include "core/kernel/WModuleOutputData.h"
60 virtual const std::string
getName()
const;
74 virtual std::shared_ptr< WModule >
factory()
const;
111 std::shared_ptr< WModuleInputData< WDataSetSingle > >
m_voi1Input;
116 std::shared_ptr< WModuleInputData< WDataSetSingle > >
m_voi2Input;
146 std::shared_ptr< WDataSetSingle >
m_voi1;
151 std::shared_ptr< WDataSetSingle >
m_voi2;
This module handles selection of fibers based on two volumes of interest.
virtual const std::string getDescription() const
Gives back a description of this module.
std::shared_ptr< WDataSetSingle > m_voi2
The VOI2 dataset (from m_voi2Input).
WPropDouble m_voi1Threshold
VOI1 threshold.
std::shared_ptr< WModuleOutputData< WFiberCluster > > m_clusterOutput
The cluster dataset created from m_fiberOutput.
std::shared_ptr< WCondition > m_propCondition
A condition used to notify about changes in several properties.
virtual ~WMFiberSelection()
Destructor.
std::shared_ptr< WModuleInputData< WDataSetFibers > > m_fiberInput
The fiber dataset which is going to be filtered.
WPropBool m_cutFibers
Cut the fibers when they are outside the VOI?
WPropDouble m_voi2Threshold
VOI2 threshold.
virtual const char ** getXPMIcon() const
Get the icon for this module in XPM format.
std::shared_ptr< WModuleInputData< WDataSetSingle > > m_voi1Input
The first VOI.
virtual const std::string getName() const
Gives back the name of this module.
virtual void connectors()
Initialize the connectors this module is using.
virtual void activate()
Callback for m_active.
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< WDataSetFibers > m_fibers
The fiber dataset (from m_fiberInput).
std::shared_ptr< WModuleOutputData< WDataSetFibers > > m_fiberOutput
The output connector used to provide the calculated data to other modules.
std::shared_ptr< WModuleInputData< WDataSetSingle > > m_voi2Input
The second VOI.
virtual void properties()
Initialize the properties for this module.
std::shared_ptr< WDataSetSingle > m_voi1
The VOI1 dataset (from m_voi1Input).
WPropBool m_preferShortestPath
Should the fibers be cut to avoid having them inside the VOI.
virtual void moduleMain()
Entry point after loading the module.
WMFiberSelection()
Default constructor.
Class representing a single module of OpenWalnut.