[vtkusers] change image slices with keyboard

José M. Rodriguez Bacallao jmrbcu at gmail.com
Fri May 25 09:33:04 EDT 2012


but, it's not posible to use the camera for that?. In caso of using
vtkPlane with the method SetSlicePlane of vtkImageResliceMapper, how
do I define the plane to represent an slice defined by its number?

On Thu, May 24, 2012 at 11:37 AM, Jochen <jochen.kling at email.de> wrote:
> Hi José,
>
> I have absolutely no experience with vtkImageResliceMapper, but from what
> the documentation for vtkImageResliceMapper says I may see a way to do what
> you want.
>
>
> doxygen documentation wrote
>>
>> virtual void vtkImageResliceMapper::SetSlicePlane (vtkPlane *plane)
>>
>> Set the slice that will be used to cut through the image. This slice
>> should be in world coordinates, rather than data coordinates. Use
>> *SliceFacesCamera* and *SliceAtFocalPoint* if you want the slice to
>> automatically follow the camera.
>
> So, maybe you can manipulate the camera by keys and using those two
> mentioned functions to make the slice follow the camera. I have no idea how
> to do that, but I can imagine this could work somehow.
>
> Perhaps it's a thought-provoking impulse to you.
> Good luck.
>
> with best regards
> Jochen
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/change-image-slices-with-keyboard-tp5713290p5713372.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers



More information about the vtkusers mailing list