32 #include <boost/thread.hpp>
34 #include "core/kernel/WDataModule.h"
64 virtual const std::string
getName()
const;
78 virtual std::shared_ptr< WModule >
factory()
const;
91 virtual std::vector< WDataModuleInputFilter::ConstSPtr >
getInputFilter()
const;
204 std::shared_ptr< WModuleOutputData< WDataSet > >
m_output;
Base for all data loader modules.
A data set consisting of a set of values based on a grid.
std::shared_ptr< WDataSetSingle > SPtr
Convenience typedef for a std::shared_ptr.
Base class for all data set types.
Module for encapsulating WDataSets.
virtual void properties()
Initialize properties in this function.
std::shared_ptr< WDataSet > m_oldDataSet
Keep track of the old dataset.
void load()
Do the loading.
osg::ref_ptr< WDataTexture3D > m_oldColormap
Keep track of registered colormaps.
virtual const char ** getXPMIcon() const
Get the icon for this module in XPM format.
void updateColorMap(std::shared_ptr< WDataSet > dataSet)
Add the colormapping.
std::shared_ptr< WItemSelection > m_matrixSelectionsList
A list of color map selection types.
WPropSelection m_matrixSelection
Selection property for color map.
virtual std::vector< WDataModuleInputFilter::ConstSPtr > getInputFilter() const
Define a list of file filters we support.
std::shared_ptr< WProperties > getTransformationProperties() const
Returns info property group with the three availabe transformation matrixes.
WMatrix< double > m_transformQForm
a standard transform (should be an identity transform)
void propertyChanged(std::shared_ptr< WPropertyBase > property)
Called whenever a property changes.
WMatrix< double > m_transformSForm
a standard transform (should be an identity transform)
WDataSetSingle::SPtr m_dataSetAsSingle
As single.
virtual void connectors()
Initialize connectors in this function.
virtual void handleInputChange()
Handle a newly set input.
WPropString m_dataName
The name of the dataset.
virtual const std::string getDescription() const
Gives back a description of this module.
std::shared_ptr< WModuleOutputData< WDataSet > > m_output
The only output of this data module.
std::string getDataTypeString(std::shared_ptr< WDataSetSingle > dss)
Get a string for the datatype of the given dataset.
WMatrix< double > m_transformNoMatrix
a standard transform (should be an identity transform)
WMData()
Default constructor.
std::shared_ptr< WCondition > m_propCondition
a condition for the matrix selection
bool m_isTexture
Indicates whether the loaded dataSet will be available as texture.
virtual ~WMData()
Destructor.
bool m_reload
True if the load function needs to be called.
virtual const std::string getName() const
Gives back the name of this module.
std::shared_ptr< WDataSet > m_dataSet
The associated dataset.
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()
void matrixUpdate()
Update matrix.
WPropString m_dataType
The basic type of data used in this data set (e.g.
WPropString m_dataSetType
The name of the dataset type created from the data (e.g.
Base class for modelling connections between kernel modules.
Class offering an instantiate-able data connection between modules.