25 #ifndef WMGRIDRENDERER_H
26 #define WMGRIDRENDERER_H
35 #include <osg/Uniform>
37 #include "core/dataHandler/WDataSet.h"
38 #include "core/graphicsEngine/WGEGroupNode.h"
39 #include "core/graphicsEngine/geodes/WGEGridNode.h"
40 #include "core/kernel/WModule.h"
41 #include "core/kernel/WModuleInputData.h"
64 virtual const std::string
getName()
const;
84 virtual std::shared_ptr< WModule >
factory()
const;
109 std::shared_ptr< WModuleInputData< WDataSet > >
m_input;
std::shared_ptr< WDataSet > SPtr
Shared pointer abbreviation to a instance of this class.
osg::ref_ptr< WGEGridNode > SPtr
Convenience typedef for a osg::ref_ptr< WGEGridNode >.
std::shared_ptr< WItemSelection > SPtr
Convenience typedef for a std::shared_ptr< WItemSelection >
Show the bounding box and grid of a WDataSetSingle.
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 const std::string getDescription() const
Gives back a description of this module.
~WMGridRenderer()
Destructor.
WPropColor m_gridColor
the color of the grid
void slotPropertyChanged(std::string propertyName)
Determine what to do if a property was changed.
virtual void properties()
Initialize the properties for this module.
std::shared_ptr< WCondition > m_recompute
This condition denotes whether we need to recompute the surface.
WPropColor m_bboxColor
the color of the bounding box
std::shared_ptr< WModuleInputData< WDataSet > > m_input
Input connector required by this module.
WMGridRenderer()
Standard constructor.
virtual const std::string getName() const
Gives back the name of this module.
virtual void moduleMain()
Entry point after loading the module.
void updateNode(WPropertyBase::SPtr property)
Handles updates in properties.
virtual const char ** getXPMIcon() const
Get the icon for this module in XPM format.
WDataSet::SPtr m_dataSetOld
The currently handled data.
WItemSelection::SPtr m_possibleModes
the modes available.
virtual void connectors()
Initialize the connectors this module is using.
WPropSelection m_mode
the mode (bbox, grid, both)
WGEGridNode::SPtr m_gridNode
The node actually drawing the grid.
WPropInt m_boxLineWidth
the width of the boundary lines
WPropInt m_gridLineWidth
the width of the grid lines
std::shared_ptr< WProperties > currentDataInfoProperties
Kept reference to current data infos as properties.
Class representing a single module of OpenWalnut.
std::shared_ptr< WPropertyBase > SPtr
Convenience typedef for a std::shared_ptr< WPropertyBase >