25 #ifndef WMISOSURFACERAYTRACER_H
26 #define WMISOSURFACERAYTRACER_H
32 #include <osg/Uniform>
34 #include "core/graphicsEngine/shaders/WGEShader.h"
35 #include "core/kernel/WModule.h"
36 #include "core/kernel/WModuleInputData.h"
37 #include "core/kernel/WModuleOutputData.h"
64 virtual const std::string
getName()
const;
78 virtual std::shared_ptr< WModule >
factory()
const;
111 std::shared_ptr< WModuleInputData< WDataSetScalar > >
m_input;
116 std::shared_ptr< WModuleInputData< WDataSetVector > >
m_gradients;
This data set type contains scalars as values.
This data set type contains vectors as values.
This module builds the base for fast raytracing of isosurfacesin OpenWalnut.
std::shared_ptr< WModuleInputData< WDataSetScalar > > m_input
An input connector used to get datasets from other modules.
osg::ref_ptr< WGEShader > m_shader
the DVR shader.
virtual void properties()
Initialize the properties for this module.
virtual ~WMIsosurfaceRaytracer()
Destructor.
WPropDouble m_epsilon
The numeric precision used for iso-checking.
virtual void requirements()
Initialize requirements for this module.
WPropDouble m_isoValue
The Isovalue used in the case m_isoSurface is true.
virtual const std::string getName() const
Gives back the name of this module.
WPropBool m_phongNoSpec
Some special coloring mode for disabling specular hightlights.
virtual const std::string getDescription() const
Gives back a description of this module.
virtual const char ** getXPMIcon() const
Get the icon for this module in XPM format.
WPropColor m_isoColor
The color used when in isosurface mode for blending.
WPropBool m_stochasticJitter
If true, the ray-tracer uses stochastic jitter to improve image quality.
WPropDouble m_alpha
The alpha transparency used for the rendering.
WPropDouble m_borderClipDistance
The distance used for clipping.
std::shared_ptr< WModuleInputData< WDataSetVector > > m_gradients
The gradient field input.
WMIsosurfaceRaytracer()
Default constructor.
WPropBool m_phongShading
If true, per-pixel-phong shading is applied to the surface.
WPropInt m_stepCount
The number of steps to walk along the ray.
virtual void connectors()
Initialize the connectors this module is using.
WPropBool m_borderClip
If true, a certain border area can be clipped.
WPropDouble m_colormapRatio
The ratio between colormap and normal surface color.
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...
std::shared_ptr< WCondition > m_propCondition
A condition used to notify about changes in several properties.
virtual void moduleMain()
Entry point after loading the module.
Class representing a single module of OpenWalnut.