25 #ifndef WMFIBERTRANSLATOR_H
26 #define WMFIBERTRANSLATOR_H
31 #include "core/dataHandler/WDataSetFibers.h"
32 #include "core/kernel/WModule.h"
33 #include "core/kernel/WModuleOutputData.h"
57 virtual const std::string
getName()
const;
71 virtual std::shared_ptr< WModule >
factory()
const;
107 std::shared_ptr< WDataSetFibers >
mergeFibers( boost::filesystem::path dir );
115 std::shared_ptr< WDataSetFibers >
mergeFibersNrrd( boost::filesystem::path dir );
126 std::shared_ptr< WModuleOutputData< WDataSetFibers > >
m_output;
Creates a fiber dataset from various data sources.
std::shared_ptr< WDataSetFibers > mergeFibers(boost::filesystem::path dir)
Merge the fibers in the given directory.
virtual const std::string getName() const
Gives back the name of this module.
virtual const char ** getXPMIcon() const
Get the icon for this module in XPM format.
virtual void moduleMain()
Entry point after loading the module.
std::shared_ptr< WCondition > m_propCondition
A condition for property updates.
std::shared_ptr< WModuleOutputData< WDataSetFibers > > m_output
The output connector.
WPropFilename m_propInputFile
A property for choosing a file that contains the fiber coordinates.
virtual void properties()
Initialize the properties for this module.
WMFiberTranslator()
Constructor.
virtual const std::string getDescription() const
Gives back a description of this module.
WPropFilename m_propInputDirectory
A property for choosing the directory that contains the fiber text files.
virtual ~WMFiberTranslator()
Destructor.
virtual void connectors()
Initialize the connectors this module is using.
virtual void requirements()
Initialize requirements for this module.
std::shared_ptr< WDataSetFibers > loadExploreDTIFibers(boost::filesystem::path file)
Load fibers from an ExploreDTI .txt file.
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 > mergeFibersNrrd(boost::filesystem::path dir)
Merge the fibers from given directory.
Class representing a single module of OpenWalnut.