Hello,
I have written an own 2D mapper and would like to use it in only one of the 4
render windows.
This works fine by setting the third mapper slot of my image data node and by
telling the mapping renderer of the fourth window to switch to this slot.
Unfortunately, all interactors (pan, zoom, etc.) don't seem to work then. The
following code illustrates my problem:
mitk::BaseRenderer::Pointer pMappingRenderer =
mitk::BaseRenderer::GetInstance(m_pMultiWidget->mitkWidget4->GetRenderWindow());
int nMapperSlot = 3;
if (m_pSelectedNode->GetMapper(nMapperSlot)==0)
{
typedef mitk::ImageMapper2D MapperType;
MapperType::Pointer pMapper = MapperType::New();
MapperType::SetDefaultProperties(m_pSelectedNode);
m_pSelectedNode->SetMapper(nMapperSlot,
pMapper);
}
pMappingRenderer->SetMapperID(nMapperSlot);
What do I have to do to make the 2D interactors work if the third mapper slot
is activated?
Thank you,
Michael.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users