I&#39;ve gotten close.  What I do is use my pan method that I wrote which pans by using vtkCamera.Position and vtkCamera.FocalPoint on the mouse, and then I zoom in/out at the same time.  That seems to work for me.<br><br>
<div class="gmail_quote">On Mon, Nov 22, 2010 at 4:56 AM, Jesús Spí­nola <span dir="ltr">&lt;<a href="mailto:jspinola@gmail.com">jspinola@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<div><br></div><div>I amb also interested in a zoom-to-point behaviour. Have you achieved what you were looking for, Jonathan? What has been your approach?</div><div><br></div><div>I&#39;m just playing with vtkRenderWindowInteractor::FlyToImage() but it&#39;s not enough for me by now. It would be great if you can share your improvements with the community ;)<div>
<div></div><div class="h5"><br>
<br><div class="gmail_quote">On Wed, Oct 20, 2010 at 6:54 PM, Jonathan Morra <span dir="ltr">&lt;<a href="mailto:jonmorra@gmail.com" target="_blank">jonmorra@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Thanks, I&#39;ll have a look.<div><div></div><div><br><br><div class="gmail_quote">On Wed, Oct 20, 2010 at 9:53 AM, Jothy <span dir="ltr">&lt;<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I think you should look into vtkInteractorStyleImage source.<br><br>Go to vtk git.<br><font color="#888888"><br>Jothy</font><div><div></div><div><br><br><div class="gmail_quote">On Wed, Oct 20, 2010 at 5:45 PM, Jonathan Morra <span dir="ltr">&lt;<a href="mailto:jonmorra@gmail.com" target="_blank">jonmorra@gmail.com</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">This actually works backwards for me, but I think that&#39;s because my camera is flipped.  Where is the source for this, I might be able to just implement it correctly for me myself.<div>



<br></div><div>But this is the idea that I had.<div><div></div><div><br>
<br><div class="gmail_quote">On Wed, Oct 20, 2010 at 9:40 AM, Jothy <span dir="ltr">&lt;<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">




<div dir="ltr">Click which about which point you wan tot zoom, then press&quot;F&quot; key.<br><br>Jothy<br><br><div class="gmail_quote"><div><div></div><div>On Wed, Oct 20, 2010 at 5:36 PM, Jonathan Morra <span dir="ltr">&lt;<a href="mailto:jonmorra@gmail.com" target="_blank">jonmorra@gmail.com</a>&gt;</span> wrote:<br>





</div></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div><div></div><div>I have a vtkImageViewer2 that I wish to zoom in on.  I have applied the vtkInteractorStyleImage to the image, and I can zoom using the right mouse button.  However, this always zooms in on the center of the image.  I&#39;d like to center the zoom on the location that the mouse was initially clicked on.  Does anyone have an example of how to do this?<div>






<br></div><div>Thanks</div><div><br></div><div>PS I&#39;m working in Java</div>
<br></div></div>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<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></blockquote></div><br></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br>
</div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<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></blockquote></div><br><br clear="all"><br></div></div>-- <br>Jesús Spínola<br>
</div>
</blockquote></div><br>