Page MenuHomePhabricator

Test for 2d-3d-world point picking in mitk
Closed, ResolvedPublic

Description

Write a test for T18710.

Event Timeline

Bug fix comprises:

extending the interaction event recorder plugin in such a way that the display geometry is set into a "rotated planes mode" as well as changing the view port of the 3D window.
This allows to record events in non-freshly re-init settings, and covers more potential bugs.
The special rotation needs to be set in the recorder in order to allow for an extract restoration of these setting in the Interaction tests.

The PointSetDataInteractor test is extended to a scenario that picks points in 2d/3d on rotated planes and modified view port.

User webechr has pushed new remote branch:

bug-18774-PointSetTestFor3DRotationAndMore

3d / 2d Test is written, problem is that PointSetInteractor operates solely on 3D World Points - in the test scenaria those are provided via xml, so that the test actually cannot fail.

3D WorldPoints need to be computed "on the fly" given the actual geometries to cover the intended test cases
-> WIP

3d world positions are now computed on the fly, and only on demand.

the tests currently fail, because Z component is slighty different when running the tests. this might be a bug in the testing framework itself, or point to (yet another) underlying geometry problem.

DisplayGeometries differ when running Workbench, and when running the Test,
putting the test on hold, until DisplayGeometry issues are sorted out.

User webechr has pushed new remote branch:

bug-18774-PointSetTestFor3DRotationAndMore-Intergration