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

[ADD #286] provide opacity for distnce map isosurface

parent 376d9b58
...@@ -80,7 +80,7 @@ void WMDistanceMapIsosurface::moduleMain() ...@@ -80,7 +80,7 @@ void WMDistanceMapIsosurface::moduleMain()
m_marchingCubesModule->isReady().wait(); m_marchingCubesModule->isReady().wait();
boost::shared_ptr< WProperties > mcProps = m_marchingCubesModule->getProperties(); boost::shared_ptr< WProperties > mcProps = m_marchingCubesModule->getProperties();
m_isoValueProp = mcProps->getProperty( "Iso Value" )->toPropDouble(); m_isoValueProp = mcProps->getProperty( "Iso Value" )->toPropDouble();
m_isoValueProp->set( 0.5 ); m_isoValueProp->set( 0.2 );
m_isoValueProp->setMin( 0.0 ); m_isoValueProp->setMin( 0.0 );
m_isoValueProp->setMax( 1.0 ); m_isoValueProp->setMax( 1.0 );
m_properties->addProperty( m_isoValueProp ); m_properties->addProperty( m_isoValueProp );
...@@ -90,6 +90,10 @@ void WMDistanceMapIsosurface::moduleMain() ...@@ -90,6 +90,10 @@ void WMDistanceMapIsosurface::moduleMain()
m_useTextureProp->set( true ); m_useTextureProp->set( true );
m_properties->addProperty( m_useTextureProp ); m_properties->addProperty( m_useTextureProp );
m_opacityProp = mcProps->getProperty( "Opacity %" )->toPropInt();
m_properties->addProperty( m_opacityProp );
////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////
// Distance Map // Distance Map
////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////
......
...@@ -88,6 +88,7 @@ protected: ...@@ -88,6 +88,7 @@ protected:
private: private:
WPropDouble m_isoValueProp; //!< Property holding the value for the distance. 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. 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. 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