Page MenuHomePhabricator

No way to specify renderer name for multiwidget, renderer specific properties won't work
Closed, ResolvedPublic

Description

Hi,

we are trying to upgrade MITK but ran into a problem again. The way of storing the renderer specific properties has changed. Now they are mapped to the name of the renderer, not to the renderer's memory address.

This solution is more flexible, since the properties are preserved when the display is closed and reopened. However, it also requires that the renderers are uniquely named.

We have a viewer that contains several StdMultiWidgets, and also have a plugin that contains one. Currently, there is no way of enforcing a unique naming, because the render windows are created inside the StdMultiWidget constructor but it does not provide an API to control the naming.

At the end, all the viewers will have a renderer with the same four names and the renderer specific properties will apply for each of them.

I will push a fix soon. Please merge it or provide another way to allow unique naming.

Cheers,
Miklos

Event Timeline

[702298]: Merge branch 'bug-17829-unique-renderer-names'

Merged commits:

2014-05-30 18:33:43 Miklos Espak [ee5032]
QmitkStdMultiWidget constructor accepts prefix for renderer names

Signed-off-by: Miklos Espak <m.espak@ucl.ac.uk>