25 #ifndef WMWRITENIFTI_H
26 #define WMWRITENIFTI_H
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;
111 template<
typename T >
void castData(
void*& returnData );
124 std::shared_ptr< WModuleInputData< WDataSetSingle > >
m_input;
Write the input dataset to a NIfTI file.
~WMWriteNIfTI()
Destructor.
virtual const std::string getName() const
Gives back the name of this module.
std::shared_ptr< WModuleInputData< WDataSetSingle > > m_input
Input connector required by this module.
void castData(void *&returnData)
Allows one to get a void* out of WValueSet.
virtual void moduleMain()
Entry point after loading the module.
WMWriteNIfTI()
Standard constructor.
WPropTrigger m_saveTriggerProp
This property triggers the actual writing,.
WPropFilename m_filename
The filename property -> where to write the nifty file.
virtual void properties()
Initialize the properties for this module.
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< WDataSetSingle > m_dataSet
Pointer providing access to the treated data set in the whole module.
virtual const char ** getXPMIcon() const
Get the icon for this module in XPM format.
virtual const std::string getDescription() const
Gives back a description of this module.
virtual void connectors()
Initialize the connectors this module is using.
void writeToFile()
This performs all work necessary to actually write the data to the file.
Class representing a single module of OpenWalnut.
Class to handle events with a pick.