Page MenuHomePhabricator

Add possibility to set a specified zoom-level on CameraController
Closed, ResolvedPublic

Description

It used to be possible to set a specified zoom-level in the mitk::DisplayGeometry that was used (except it was corrected by the zoom-constraints).

When the DisplayGeometry was removed and partially replaced by the CameraController this possibility was removed. Right now, it's only possible to zoom in and out by a relative value.

The possibility to define an absolute zoom-level should be added again.

Event Timeline

User engelm has pushed new remote branch:

bug-19378-set-absolute-zoomlevel

I have added a new method mitk::CameraController::SetScaleFactorInMMPerDisplayUnit() that can be used to apply an absolute zoom-level.

The method has been implemented as proposed by Christoph in an EMail on the MITK-Mailinglist.

[722a73]: Merge branch 'bug-19378-set-absolute-zoomlevel'

Merged commits:

2015-10-19 15:21:12 Markus Engel [8544c6]
added method to set absolute zoomlevel on CameraController

It's now possible to set a specific zoom level on the CameraController