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

[ADD #736] make the WPropertyTransferFunction2DWidget update correctly with...

[ADD #736] make the WPropertyTransferFunction2DWidget update correctly with triangle points of the 2DTF
parent 541cc871
......@@ -115,7 +115,14 @@ void WPropertyTransferFunction2DWidget::update()
c = toQColor( tf.getColor( i ) );
double isoX = tf.getIsovalueX( TRIANGLE, i );
double isoY = tf.getIsovalueY( TRIANGLE, i );
m_transferFunction.insertTriangleWidgetNormalized( QPointF( isoX, isoY ), &c );
QPointF points[3];
points[0].setX( tf.getPoints( i )[0].x );
points[0].setY( tf.getPoints( i )[0].y );
points[1].setX( tf.getPoints( i )[1].x );
points[1].setY( tf.getPoints( i )[1].y );
points[2].setX( tf.getPoints( i )[2].x );
points[2].setY( tf.getPoints( i )[2].y );
m_transferFunction.insertTriangleWidgetNormalized( points, QPointF( isoX, isoY ), &c );
}
}
else
......
......@@ -116,7 +116,6 @@ void WTransferFunction2DControlPoint::mouseMoveEvent( QGraphicsSceneMouseEvent *
break;
case BOTTOMRIGHT:
emit( resizeHandleChanged( BOTTOMRIGHT, this->pos() ) );
//wlog::debug( "CP") << pos().x() << " " << pos().y();
break;
case BOTTOMLEFT:
emit( resizeHandleChanged( BOTTOMLEFT, this->pos() ) );
......
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