Hi,
we have an application in which we provide two editors, let's call them
MITK Display (QmitkStdMultiWidgetEditor) and DnD Display (our custom one).
Until not so long ago both of them used the global rendering manager
instance. But when a new image is opened,
InitializeViewsByBoundingObjects(dataStorage) is called for the global
rendering manager, that calculates a new time geometry based on the
globally visible images in the data storage. This messes up the geometry in
the DnD Display.
There is a preference to suppress the InitializeViewsByBoundingObjects
call, but it's useful only if you use only the DnD display (with the global
rendering manager), but not both.
So, I changed the DnD Display to use its own rendering manager. But then
many MITK plugins stopped working properly because they update the screen
by calling RequestUpdateAll on the global rendering manager.
Would it be possible to change these calls to use the 'current' rendering
manager?
Something like:
mitk::GlobalInteraction::GetInstance()->GetFocusManager()->GetFocused()->GetRenderingManager()
Or (better) provide a static
mitk::RenderingManager::GetFocusedRenderingManager() function that returns
the rendering manager of the focused renderer, and just replace the
GetInstance calls to this?
Does this makes sense?
Cheers,
Miklos
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users