Hi The problem is that mitkGeometry2DDataVtkMapper3D internally requires the image mapper which is not the case in my custom mapper. So i also need to write my own 3D mapper.
In fact my mapper does not get a pure mitk::Image as input, i made my own Image class inherited from mitk::Image with some additional things of my specific data type which is hard to explain, so it is not easily possible to use my mapper in pure mitk gui (there are many things in it which are not necessary for pure vector images). But in fact it is an improved version of the mitk vecotor image mapper... In general my "improved" vector mapper has two modes: -> The first one only generates the vector magnitude and display it in same way as the mitk image mapper (i copied the code of the RendererInfo class in the mitkImageMapperGL2D class) Here i also have a vtkImageReslice m_Reslicer with the same input as in mitkImageMapperGL2D, and the output of the reslicer should now be used in my new mapper which is based on vtk mappers. The mapper should show the 3 planes. The problem is that the origin/spacing/rotation does not fit, so my question is what must i do with the output of the reslicer to transform them on right coordinates? Best regards -----Ursprüngliche Nachricht----- Von: Marco Nolden [mailto:[email protected]] Gesendet: Mittwoch, 23. März 2011 15:07 An: Lodron, Gerald Cc: '[email protected]' Betreff: Re: [mitk-users] Custom Mapper for 3D Rendering Dear Gerald, that sounds interesting. Could you share or contribute your 2D mapper code? In general the mitk::Geometry2DDataVtkMapper3D seems to be well documented (http://docs.mitk.org/nightly-qt4/classmitk_1_1Geometry2DDataVtkMapper3D.html) . Could you specify your problem a bit more? Best, Marco On 03/22/2011 03:43 PM, Lodron, Gerald wrote: > Hi > I made my own 2D mapper for Vector images which work nice and now try > to make the 3DMapper which should show the same 2D images on the 3D > image plane widget. > I found the handling of this in mitkGeometry2DDataVtkMapper3D but i do > not really know how to implement it, can anyone give me a hint? > Is it possible to get the cross position of the QmitkMultiWidget? Then > i could reslice it again.... ------------------------------------------------------------------------------ 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
