25 #include "WDataModule.h"
29 m_suppressColormaps( false ),
Class to encapsulate boost::condition_variable_any.
std::shared_ptr< const WCondition > ConstSPtr
Const shared pointer type for WCondition.
bool m_suppressColormaps
If true, data modules are instructed to suppress colormap registration.
WDataModuleInput::SPtr m_dataModuleInput
The input this data module should use.
virtual MODULE_TYPE getType() const
Gets the type of the module.
WDataModule()
Default constructor.
virtual void handleInputChange()=0
Handle a newly set input.
WCondition::SPtr m_inputChanged
Condition that fires whenever the input changes via setInput.
WCondition::ConstSPtr getInputChangedCondition() const
Return the condition that gets triggered upon input change.
void reload()
Initiate an reloading of the data.
bool getSuppressColormaps() const
Checks whether suppression of colormaps is active.
virtual ~WDataModule()
Destructor.
virtual WDataModuleInput::SPtr getInput() const
Get the currently set input or NULL if none was set.
void setInput(WDataModuleInput::SPtr input)
Set the input of this data module.
virtual void setSuppressColormaps(bool suppress=true)
Allows suppression of colormap registration in data modules.
Class representing a single module of OpenWalnut.
std::shared_ptr< WThreadedRunner > SPtr
Abbreviation to a shared_ptr to this type.