Hi

Now my custom mapper works but i had to make my class inherited from 
mitk::Geometry2DDataVtkMapper3D and to register it for geometry2DData objects. 
The only problem is that the registration process does not work, in 
mitk::VtkPropRenderer the constructor does not use the CreateMapper function of 
the factory, so i changed:



mitk::Geometry2DData::Pointer oGeoData = mitk::Geometry2DData::New();

mitk::DataNode::Pointer oGeoNode = mitk::DataNode::New();

oGeoNode->SetData(oGeoData);

mitk::Geometry2DDataVtkMapper3D::Pointer geometryMapper = 
dynamic_cast<mitk::Geometry2DDataVtkMapper3D*>(mitk::CoreObjectFactory::GetInstance()->CreateMapper(oGeoNode,
 
mitk::BaseRenderer::Standard3D).GetPointer());//mitk::Geometry2DDataVtkMapper3D::New();

m_CurrentWorldGeometry2DMapper = geometryMapper;

m_CurrentWorldGeometry2DNode->SetMapper(2, geometryMapper);



May you want to do it also this way in mitk so that users can overwrite the 
geometry2DDate visualization!



best regards


Gerald Lodron
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to