25 #ifndef WMIMAGESPACETENSORLIC_H
26 #define WMIMAGESPACETENSORLIC_H
32 #include "core/dataHandler/WDataSetVector.h"
33 #include "core/graphicsEngine/WGEManagedGroupNode.h"
34 #include "core/graphicsEngine/WTriangleMesh.h"
35 #include "core/kernel/WModule.h"
36 #include "core/kernel/WModuleInputData.h"
61 virtual const std::string
getName()
const;
75 virtual std::shared_ptr< WModule >
factory()
const;
100 void initOSG( std::shared_ptr< WGridRegular3D > grid, std::shared_ptr< WTriangleMesh > mesh );
105 std::shared_ptr< WModuleInputData< WDataSetVector > >
m_evec1In;
110 std::shared_ptr< WModuleInputData< WDataSetVector > >
m_evec2In;
115 std::shared_ptr< WModuleInputData< WDataSetVector > >
m_evalsIn;
120 std::shared_ptr< WModuleInputData< WTriangleMesh > >
m_meshIn;
145 osg::ref_ptr< WGEManagedGroupNode >
m_root;
This module takes a second order symmetric tensor dataset and uses it to apply an image space based (...
WPropBool m_useLight
indicates whether to use Phong
virtual void connectors()
Initialize the connectors this module is using.
std::shared_ptr< WCondition > m_propCondition
A condition used to notify about changes in several properties.
WPropDouble m_lightIntensity
light intensity
WPropDouble m_cmapRatio
the ratio between colormap and LIC
WPropGroup m_geometryGroup
the group contains several input geometry parameters
WMImageSpaceTensorLIC()
Default constructor.
WPropSelection m_geometrySelection
A property allowing the user to select whether the slices or the mesh should be used.
WPropDouble m_faClip
Clipp according to FA.
WPropInt m_yPos
y position of the slice
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...
WPropBool m_showonX
indicates whether the vector should be shown on slice X
virtual void moduleMain()
Entry point after loading the module.
WPropInt m_xPos
x position of the slice
std::shared_ptr< WModuleInputData< WDataSetVector > > m_evec2In
The input connector containing the DTI field whose derived field is used for LIC.
WPropBool m_showonZ
indicates whether the vector should be shown on slice Z
void initOSG(std::shared_ptr< WGridRegular3D > grid, std::shared_ptr< WTriangleMesh > mesh)
Initializes the needed geodes, transformations and vertex arrays.
WPropDouble m_useEdgesStep
define the steepness of the step function used to blend in the edge color.
std::shared_ptr< WItemSelection > m_geometrySelections
A list of items that can be selected using m_geometrySelection.
WPropGroup m_advancedLicGroup
The group for more advanced LIC features.
virtual ~WMImageSpaceTensorLIC()
Destructor.
WPropDouble m_noiseRes
The resolution scaling for the noise.
std::shared_ptr< WModuleInputData< WDataSetVector > > m_evalsIn
The input connector containing the DTI field whose derived field is used for LIC.
virtual const std::string getDescription() const
Gives back a description of this module.
osg::ref_ptr< WGEGroupNode > m_output
The Geode containing all the slices and the mesh.
osg::ref_ptr< WGEManagedGroupNode > m_root
Scene root node.
std::shared_ptr< WModuleInputData< WDataSetVector > > m_evec1In
The input connector containing the DTI field whose derived field is used for LIC.
WPropInt m_numIters
the number of iterations done per frame
WPropBool m_useSlices
indicates whether the vector should be shown on slices or input geometry
WPropBool m_showonY
indicates whether the vector should be shown on slice Y
WPropBool m_useEdges
indicates whether to show the edges
WPropColor m_useEdgesColor
indicated whether the edges (if enabled) should be black or white or green or red or ....
virtual const std::string getName() const
Gives back the name of this module.
std::shared_ptr< WModuleInputData< WTriangleMesh > > m_meshIn
The input containing the surface on which the LIC should be applied on.
WPropGroup m_sliceGroup
the group contains several slice properties
WPropDouble m_projectionAngleThreshold
the angle threshold between surface and vector before clipping the vector.
WPropBool m_showHUD
indicates whether to show the texture HUD
WPropInt m_zPos
z position of the slice
WPropGroup m_licGroup
the group contains several LIC properties
virtual void properties()
Initialize the properties for this module.
Class representing a single module of OpenWalnut.