Commit 8f35249d authored by Alexander Wiebel's avatar Alexander Wiebel

[ADD #286] provide opacity for distnce map isosurface

parent 376d9b58
......@@ -80,7 +80,7 @@ void WMDistanceMapIsosurface::moduleMain()
m_marchingCubesModule->isReady().wait();
boost::shared_ptr< WProperties > mcProps = m_marchingCubesModule->getProperties();
m_isoValueProp = mcProps->getProperty( "Iso Value" )->toPropDouble();
m_isoValueProp->set( 0.5 );
m_isoValueProp->set( 0.2 );
m_isoValueProp->setMin( 0.0 );
m_isoValueProp->setMax( 1.0 );
m_properties->addProperty( m_isoValueProp );
......@@ -90,6 +90,10 @@ void WMDistanceMapIsosurface::moduleMain()
m_useTextureProp->set( true );
m_properties->addProperty( m_useTextureProp );
m_opacityProp = mcProps->getProperty( "Opacity %" )->toPropInt();
m_properties->addProperty( m_opacityProp );
//////////////////////////////////////////////////////////////////////////////////
// Distance Map
//////////////////////////////////////////////////////////////////////////////////
......
......@@ -88,6 +88,7 @@ protected:
private:
WPropDouble m_isoValueProp; //!< Property holding the value for the distance.
WPropInt m_opacityProp; //!< Property holding the value for the opacity of the surface.
WPropBool m_useTextureProp; //!< Property indicating whether to use texturing with scalar data sets.
boost::shared_ptr< WModuleInputForwardData< WDataSetScalar > > m_input; //!< Input connector required by this module.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment