Hi,

here is a summary of what we discussed off-line already:

By registering a mitk::InteractionEventObserver sub-class as a micro 
service you can get notified about interactions, e.g. by casting the 
InteractionEvent object to an InteractionPositionEvent you can retrieve 
the position in the render window.

It might be a good idea to decouple the event observation from the 
mapper by introducing a datanode property which contains the relevant 
position and is read by the mapper. That property can be set by the 
interaction event observer and the component which is in charge of 
instantiating the mapper would register the event observer as well and 
couple them through the data node property.

Best,
Sascha

On 02/27/2015 03:51 PM, Floca, Ralf Omar wrote:
> Hello everybody,
>
> what would be a sound way to get the current cross-hair position in the 
> GenerateDataForRenderer() of a custom mapper implementation?
>
> On a view level I can access this information via 
> IRenderWindowPart::GetSelectedPosition(). But I have not found a simple way 
> to receive this information in the mapper.
>
> Background is, that the rendering of the mapper depends on the current 
> selected position. E.G. if I want to use a vtkImageRectilinearWipe for the 
> visualization and have to specify the cross hair position as the wipe 
> position for the 2D plane if the render window.
>
> Thank you very much.
>
> Best regards,
> Ralf
>
> ------------------------------------------------------------------------------------------------------
> Dr. Ralf Floca
> Software development for Integrated Diagnostic and Therapy (SIDT)
> Group leader
>
> German Cancer Research Center (DKFZ)
> Foundation under Public Law
> Im Neuenheimer Feld 280
> 69120 Heidelberg
> Germany
> phone: +49 6221 42-2560
>
> [email protected]
> www.dkfz.de
>
>
>
> Management Board: Prof. Dr. Dr. h.c. Otmar D. Wiestler, Prof. Dr. Josef Puchta
> VAT-ID No.: DE143293537
>
>
> Confidentiality Note:
> This message is intended only for the use of the named recipient(s) and may 
> obtain confidential and/or privileged information. If you are not the 
> intended recipient, please contact the sender and delete the message. Any 
> unauthorized use of the information contained in this message is prohibited.
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> mitk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mitk-users


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to