Commit 949a1705 authored by Alexander Wiebel's avatar Alexander Wiebel

[CHANGE] Add max and min to opacity scaling (makes it a slider in the current...

[CHANGE] Add max and min to opacity scaling (makes it a slider in the current GUI) and make its effect immediate
parent f95ded5a
......@@ -96,6 +96,8 @@ void WMTransferFunction1D::properties()
"Factor used to scale opacity for easier interaction",
1.0,
m_propCondition );
m_opacityScale->setMin( 0 );
m_opacityScale->setMax( 1 );
m_binSize = m_properties->addProperty( "Histogram Resolution", "Number of bins in histogram.", 64, m_propCondition );
m_binSize->setMin( 2 );
......@@ -165,7 +167,7 @@ void WMTransferFunction1D::moduleMain()
m_transferFunction->set( tf );
}
if( m_resolution->changed() || tfChanged )
if( m_resolution->changed() || tfChanged || m_opacityScale->changed() )
{
// debugLog() << "resampling transfer function";
unsigned int resolution = m_resolution->get( true );
......
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