[vtkusers] vtkImagePlaneWidget

Simon Drouin sdrouin at bic.mni.mcgill.ca
Mon Apr 25 09:31:50 EDT 2005


Toon Huysmans wrote:

>Thanks for your reply Dean,
>
>	But still there is a misunderstanding; I don't want to visualize
>them side by side.  I would like to put them in the same space, so that
>I can more accurately evaluate the registration.  I could ofcourse use a
>checkerboard visualisation but I like the way Amira does it.
>
>In Amira, the both the 3D reference and 3D moving image are orthogonally
>sliced in their image space. Then the orthogonal planes are transformed
>into world space: for the reference image we use the identity transform,
>for the moving image we use the registration transform.
>
>The problem with vtkImagePlaneWidget is, that if you apply a
>transformation to it, then the images are resliced at the transformed
>position instead of at the original position in imagespace.  I just
>think that it is not possible to achieve what I want using a
>vtkImagePlaneWidget. But still I hope someone tells me I am wrong!
>
>Thanks,
>
>Toon.
>  
>
Hi,

There is a pretty undocumented feature in all vtk3DWidgets (from which 
derives vtkImagePlaneWidget). The method SetProp3D() seems to be used to 
specify a Prop3D to which the actors created by the widgets should be 
attached. It is possible to pass a vtkAssembly here. Set the user 
transform of this vtkAssembly. I'm not sure vtkImagePlaneWidget support 
this feature very well. If it is transformed, I suspect picking of the 
plane is not consistent.

Simon



More information about the vtkusers mailing list