29 #include "WMFunctionalMRIViewer.h"
30 #include "core/dataHandler/WDataHandler.h"
31 #include "core/graphicsEngine/WGEColormapping.h"
32 #include "core/kernel/WKernel.h"
59 return "Functional MRI Viewer";
64 return "Allows one to select a point of time and to show the dataset at that point of time.";
69 m_input = std::shared_ptr< WModuleInputData< WDataSetTimeSeries > >(
71 "in",
"A time series." )
74 m_output = std::shared_ptr< WModuleOutputData< WDataSetScalar > >(
76 "out",
"The selected time slice." ) );
109 std::shared_ptr< WDataSetTimeSeries > inData =
m_input->getData();
110 bool dataChanged = (
m_dataSet != inData );
125 float time =
m_time->get(
true );
128 s <<
m_dataSet->getFilename() <<
"_time" << time;
129 std::shared_ptr< WDataSetScalar const > ds =
m_dataSet->calcDataSetAtTime( time, s.str() );
virtual void wait() const
Wait for the condition.
void setResetable(bool resetable=true, bool autoReset=true)
Sets the resetable flag.
virtual void add(std::shared_ptr< WCondition > condition)
Adds another condition to the set of conditions to wait for.
Class to encapsulate boost::condition_variable_any.
This data set type contains scalars as values.
static void registerTexture(osg::ref_ptr< WGETexture3D > texture, std::string name="")
Register the specified texture to the colormapper.
static void deregisterTexture(osg::ref_ptr< WGETexture3D > texture)
De-register the specified texture to the colormapper.
Views a time series at different points in time.
std::shared_ptr< WDataSetTimeSeries > m_dataSet
The current input.
std::shared_ptr< WDataSetScalar > m_dataSetAtTime
The dataset at the current time.
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...
virtual void moduleMain()
Entry point after loading the module.
WPropBool m_texScaleNormalized
True, iff all textures should be scaled to the same intervall.
virtual ~WMFunctionalMRIViewer()
Standard destructor.
virtual const std::string getDescription() const
Gives back a description of this module.
WPropDouble m_time
The current time.
virtual void connectors()
Initialize the connectors this module is using.
std::shared_ptr< WModuleInputData< WDataSetTimeSeries > > m_input
The input connector for the time series.
std::shared_ptr< WModuleOutputData< WDataSetScalar > > m_output
The output connector for the currently selected time slice.
virtual const char ** getXPMIcon() const
Get the icon for this module in XPM format.
std::shared_ptr< WCondition > m_propCondition
A condition for property changes.
virtual void properties()
Initialize the properties for this module.
virtual const std::string getName() const
Gives back the name of this module.
WMFunctionalMRIViewer()
Standard constructor.
Class offering an instantiate-able data connection between modules.
Class representing a single module of OpenWalnut.
virtual void properties()
Initialize properties in this function.
wlog::WStreamedLogger debugLog() const
Logger instance for comfortable debug logging.
void addConnector(std::shared_ptr< WModuleInputConnector > con)
Adds the specified connector to the list of inputs.
std::shared_ptr< WProperties > m_properties
The property object for the module.
std::shared_ptr< WProperties > m_infoProperties
The property object for the module containing only module whose purpose is "PV_PURPOSE_INFORMNATION".
void ready()
Call this whenever your module is ready and can react on property changes.
WConditionSet m_moduleState
The internal state of the module.
virtual void connectors()
Initialize connectors in this function.
WBoolFlag m_shutdownFlag
Condition getting fired whenever the thread should quit.