[vtkusers] zoom in on a specific point

Jonathan Morra jonmorra at gmail.com
Wed Oct 20 12:36:16 EDT 2010


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'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?

Thanks

PS I'm working in Java
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101020/92dbf84b/attachment.htm>


More information about the vtkusers mailing list