Page MenuHomePhabricator

set standard views module zoom as global mitk option
Closed, ResolvedPublic

Description

See T1451.

Zoom factor for standard views module is currently hardcoded in line 122 mitkCameraController.cpp.

Event Timeline

The zoom factor global option was set in the global options list (class
QmitkMainTemplate), and the class mitkCameraController was modified in order to
have a zoom factor internal variable.
The link between the global options and the variable set method is still
missing.

The revision of the previous modifications is 14978.
The bug which gave origin to this one is 1451.

Lines have to be added at QmitkMainTemplate.ui.h: line 1477, line 750, line 956 for proper read / write of a zoom factor property. cmp to "Use gradient Background" property

the zoom factor has to be transferred via QmitkStdMultiWidget (widget4) and mitkBaseRenderer, see line 195, constructor of mitk::CameraController

The zoom factor can be adjusted in the preference page with the provided patch. Following issues are missing: Save the zoomFactor persistent with the blueberry service; Show the right zoomFactor when opening the preference page; change request is not finished yet;

Resetting needs_core_modification to - so that I'll get another mail once the change request is finished (otherwise I'd forget it)

Bin da wohl nicht der richtige... Ich denke da war ich wohl mal bei irgendeiner Party mit Diana dran ...

waiting for core modification...

The reworked DisplayInteractor already supports adjustable zoom factors.
This can be done by assigning a new EventConfiguration Object (general description: http://docs.mitk.org/nightly-qt4/InteractionMigration.html#IncludeFiles ) during runtime or statically by adjusting the xml configuration of the DisplayInteractor.

There this bug is closed. If a GUI element for adjusting the zoom factor is needed please open a new feature request.