25 #ifndef WMWRITETRACTS_H
26 #define WMWRITETRACTS_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"
62 virtual const std::string
getName()
const;
76 virtual std::shared_ptr< WModule >
factory()
const;
130 bool savePOVRay( std::shared_ptr< const WDataSetFibers > fibers )
const;
135 std::shared_ptr< WModuleInputData< const WFiberCluster > >
m_clusterIC;
140 std::shared_ptr< WModuleInputData< const WDataSetFibers > >
m_tractIC;
This module writes the tracts of either a fiber cluster or directly out of a WDataSetFibers at its co...
std::shared_ptr< WModuleInputData< const WDataSetFibers > > m_tractIC
Input connector for writing directly tracts to a file.
std::shared_ptr< WModuleInputData< const WFiberCluster > > m_clusterIC
Input connector for writing the tracts out of a WFiberCluster to a file.
WMWriteTracts()
Constructs an instance to write tracts to a file.
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...
bool savePOVRay(std::shared_ptr< const WDataSetFibers > fibers) const
Saves the fiber tracts as POVRAY SDL.
virtual void moduleMain()
Entry point after loading the module.
bool saveJson() const
Store the mesh in a json (javascript object notation) file.
std::shared_ptr< WItemSelection > m_fileTypeSelectionsList
A list of file type selection types.
WPropGroup m_povrayOptions
Groups all the options for the povray exporter.
bool saveJson2() const
Store the mesh in a json (javascript object notation) file using only every other vertex.
WPropTrigger m_run
Button to start saving.
virtual void properties()
Initialize the properties for this module.
WPropInt m_povraySaveOnlyNth
Allows thinning of the data.
WPropFilename m_savePath
Path where tracts should be stored.
WPropDouble m_povrayTubeDiameter
The tube diameter in povray export.
virtual void connectors()
Initialize the connectors this module is using.
WPropBool m_povrayRadiosity
Enables radiosity renderer in povray.
virtual const std::string getDescription() const
Gives back a description of this module.
void fileTypeChanged()
Handles updates in filetype property.
virtual const std::string getName() const
Gives back the name of this module.
virtual ~WMWriteTracts()
Destructs this instance.
WPropSelection m_fileTypeSelection
Selection property for file types.
bool saveJsonTriangles() const
Store the mesh in a json (javascript object notation) file.
Class representing a single module of OpenWalnut.