Hi,<br><br>How can I change the slice in vtkImageActor ?<br><br> 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.<br><br><br>Regards,<br>Paulo Amorim<br><br><br><br><div class="gmail_quote">2008/11/11 David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Paulo,<br>
<br>
It is impossible to zoom a 2D actor. Instead, you have to magnify the<br>
image before it goes to the vtkImageMapper. To zoom by an integer<br>
factor, you can use something like vtkImageMagnify to enlarge the<br>
image and then vtkImageClip to crop the image to the desired size.<br>
<br>
You might find it easier to use vtkImageActor, though, since<br>
vtkImageActor is a 3D actor and you can just zoom the camera.<br>
<br>
David<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
On Tue, Nov 11, 2008 at 1:28 PM, Paulo Henrique Junqueira Amorim<br>
<<a href="mailto:paulojamorim@gmail.com">paulojamorim@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> How do I zoom into a vtkActor2D with vtkImageMapper?<br>
><br>
> The vtkCamera only works with 3D.<br>
><br>
><br>
> Regards,<br>
> Paulo Amorim<br>
</div></div>> _______________________________________________<br>
> This is the private VTK discussion list.<br>
> Please keep messages on-topic. Check the FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
><br>
</blockquote></div><br>