Commit 5ca5067b authored by Mario Hlawitschka's avatar Mario Hlawitschka
Browse files

[FIX] use non-transparent alpha values in the colors as the gui cannot handle them

parent fb3b5f74
...@@ -86,9 +86,9 @@ void WMTransferFunction1D::properties() ...@@ -86,9 +86,9 @@ void WMTransferFunction1D::properties()
m_propCondition = boost::shared_ptr< WCondition >( new WCondition() ); m_propCondition = boost::shared_ptr< WCondition >( new WCondition() );
WTransferFunction tf; WTransferFunction tf;
tf.addAlpha( 0.0, 0.0 ); tf.addAlpha( 0.0, 0.0 );
tf.addColor( 0.0, WColor( 0.0, 0.0, 0.0, 0.0 ) ); tf.addColor( 0.0, WColor( 0.0, 0.0, 0.0, 1.0 ) );
tf.addAlpha( 1.0, 0.5 ); tf.addAlpha( 1.0, 0.5 );
tf.addColor( 1.0, WColor( 1.0, 0.0, 0.0, 0.0 ) ); tf.addColor( 1.0, WColor( 1.0, 0.0, 0.0, 1.0 ) );
m_transferFunction = m_properties->addProperty( "Transfer Function", "The transfer function editor.", tf, m_propCondition, false ); m_transferFunction = m_properties->addProperty( "Transfer Function", "The transfer function editor.", tf, m_propCondition, false );
m_binSize = m_properties->addProperty( "Histogram Resolution", "Number of bins in histogram.", 64, m_propCondition ); m_binSize = m_properties->addProperty( "Histogram Resolution", "Number of bins in histogram.", 64, m_propCondition );
......
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