[vtkusers] picking from resliced output

Greg Book gbook at gbook.org
Sun Jun 28 21:42:32 EDT 2009


Thanks, that may help. I tried using an observer on the resliced images, but
it gave me picked coordinates in terms of the 2D displayed image instead of
the 3D volume that the reslice came from. I was just wondering if there was
an easy mapper between the resliced output and the original 3D volume.
I think I can find out the reslice geometry myself and then map the picked
coordinates to the original volume coordinates. Hopefully that method will
work.


2009/6/26 JohnMark <zhaojunxp at hotmail.com>

>  Hi,
>   I think you should write other observer functions for your new renderer
> if you want to pick from the resliced output.
>   for example, you want to use mouse events to pick the image, so you could
> use vtkCommand::LeftButtonPressEvent, vtkCommand::MouseMoveEvent, and
> vtkCommand::LeftButtonReleaseEvent to grap the mouse events. and then you
> could write three observer functions to handle these mouse events. at last,
> use vtkCallbackCommand and vtkRenderWindowInteractor to do interact.
>   if you want to add keyboard events, you could write their observer
> functions.
>   hope it could help you.
>
>   Mark
>
> ------------------------------
> 更多热辣资讯尽在新版MSN首页! 立刻访问! <http://cn.msn.com/>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090628/8193a0fb/attachment.htm>


More information about the vtkusers mailing list