[vtkusers] Zoom Question
Paulo Henrique Junqueira Amorim
paulojamorim at gmail.com
Thu Nov 13 06:50:17 EST 2008
How can I change the slice in vtkImageActor ?
I am trying to use the image_actor.SetZSlice (10), but does not change the
piece, it seems that the manual says it is not on the slices that are in HD.
2008/11/11 David Gobbi <david.gobbi at gmail.com>
> Hi Paulo,
> It is impossible to zoom a 2D actor. Instead, you have to magnify the
> image before it goes to the vtkImageMapper. To zoom by an integer
> factor, you can use something like vtkImageMagnify to enlarge the
> image and then vtkImageClip to crop the image to the desired size.
> You might find it easier to use vtkImageActor, though, since
> vtkImageActor is a 3D actor and you can just zoom the camera.
> On Tue, Nov 11, 2008 at 1:28 PM, Paulo Henrique Junqueira Amorim
> <paulojamorim at gmail.com> wrote:
> > Hi,
> > How do I zoom into a vtkActor2D with vtkImageMapper?
> > The vtkCamera only works with 3D.
> > Regards,
> > Paulo Amorim
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers