Commit a3cf1c57 authored by Tobias Neeb's avatar Tobias Neeb
Browse files

[ADD #736] extend the update-methode for the 2D-tf to update the triangle-widget

parent 5e3753c4
......@@ -105,10 +105,18 @@ void WPropertyTransferFunction2DWidget::update()
c = toQColor( tf.getColor( i ) );
double width = tf.getWidth( i );
double height = tf.getHeight( i );
double isoX = tf.getIsovalueX( i );
double isoY = tf.getIsovalueY( i );
double isoX = tf.getIsovalueX( BOX, i );
double isoY = tf.getIsovalueY( BOX, i );
m_transferFunction.insertBoxWidgetNormalized( QPointF( isoX, isoY ), width, height, &c );
}
size_t ntWidgets = tf.numTriangleWidgets();
for( size_t i = 0; i < ntWidgets; i++ )
{
c = toQColor( tf.getColor( i ) );
double isoX = tf.getIsovalueX( TRIANGLE, i );
double isoY = tf.getIsovalueY( TRIANGLE, i );
m_transferFunction.insertTriangleWidgetNormalized( QPointF( isoX, isoY ), &c );
}
}
else
{
......
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