Page MenuHomePhabricator

PlanarFigure annotations are misplaced when moving the figure out of the scene
Closed, ResolvedPublic

Description

  • Create a PlanarFigure of any kind
    • Zoom in and pan to the right, so the figure vanishes to the left side of the scene until the figure is completely outside the scene

      -> the annotations of the figure are displayed in the lower left corner of the renderwindow

Cause of this bug is that the methods PlanarFigureMapper2D::RenderAnnotations and PlanarFigureMapper2D::RenderQuantities do not check if the parameter anchorPoint has a positive value.
In the case described above, the anchorPoint is 0/0 (actually 1*10^-38) which causes the annotations to be misplaced.

The fix is an early out of the method (no annotation is rendered) when the anchorPoint is < mitk::eps.

Event Timeline

User engelm has pushed new remote branch:

bug-19537-misplaced-planarfigure-annotation

User engelm has pushed new remote branch:

bug-19537-misplaced-planarfigure-annotation-for-master

[f8b5cc]: Merge branch 'bug-19537-misplaced-planarfigure-annotation-for-master'

Merged commits:

2016-02-04 10:38:44 Markus Engel [bdb4d9]
not rendering annotations if the anchorPoint is outside of the scene