25 #ifndef WMTRANSFERFUNCTIONCOLORBAR_H
26 #define WMTRANSFERFUNCTIONCOLORBAR_H
31 #include <osg/Projection>
33 #include "core/common/WPropertyVariable.h"
34 #include "core/dataHandler/WDataSetSingle.h"
35 #include "core/kernel/WModule.h"
36 #include "core/kernel/WModuleInputData.h"
60 virtual const std::string
getName()
const;
74 virtual std::shared_ptr< WModule >
factory()
const;
111 std::shared_ptr< WModuleInputData< WDataSetSingle > >
m_input;
This module simply registers the given dataset to the texture handling mechanism.
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...
WPropDouble m_maxScaleValue
Maximum scaling factor of the current dataset.
std::shared_ptr< WModuleInputData< WDataSetSingle > > m_input
Input connector required by this module.
osg::ref_ptr< osg::Geode > m_scaleLabels
The colorbar scale labels.
WPropBool m_colorBarName
Show colorbar name?
WPropString m_colorBarDescription
Description of the color bar.
WMTransferFunctionColorBar()
Standard constructor.
virtual void moduleMain()
Entry point after loading the module.
virtual const char ** getXPMIcon() const
Get the icon for this module in XPM format.
osg::ref_ptr< osg::Projection > m_barProjection
The projection node for the colorbar and labels.
virtual const std::string getDescription() const
Gives back a description of this module.
osg::ref_ptr< osg::Geode > m_colorBar
The colorbar.
~WMTransferFunctionColorBar()
Destructor.
WPropInt m_colorBarLabels
The number of colorbar labels.
bool m_customScale
Whether a custom min max was set.
double m_valueMin
The min of the current dataset.
virtual void activate()
Callback for m_active.
virtual void connectors()
Initialize the connectors this module is using.
virtual void properties()
Initialize the properties for this module.
std::shared_ptr< WCondition > m_propCondition
A condition used to notify about changes in several properties.
void updateColorbarScale(osg::Node *scaleLabels)
Callback which adds/removes scale labels to the colorbar.
double m_valueScale
The scaling factor of the current dataset.
WPropDouble m_minScaleValue
Minimum scaling factor of the current dataset.
WPropBool m_colorBarBorder
Show the border?
virtual const std::string getName() const
Gives back the name of this module.
Class representing a single module of OpenWalnut.