[vtkusers] zoom in on a specific point

Jonathan Morra jonmorra at gmail.com
Mon Nov 22 22:52:36 EST 2010


I'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.

On Mon, Nov 22, 2010 at 4:56 AM, Jesús Spí­nola <jspinola at gmail.com> wrote:

> Hi,
>
> I amb also interested in a zoom-to-point behaviour. Have you achieved what
> you were looking for, Jonathan? What has been your approach?
>
> I'm just playing with vtkRenderWindowInteractor::FlyToImage() but it's not
> enough for me by now. It would be great if you can share your improvements
> with the community ;)
>
>
> On Wed, Oct 20, 2010 at 6:54 PM, Jonathan Morra <jonmorra at gmail.com>wrote:
>
>> Thanks, I'll have a look.
>>
>>
>> On Wed, Oct 20, 2010 at 9:53 AM, Jothy <jothybasu at gmail.com> wrote:
>>
>>> I think you should look into vtkInteractorStyleImage source.
>>>
>>> Go to vtk git.
>>>
>>> Jothy
>>>
>>>
>>> On Wed, Oct 20, 2010 at 5:45 PM, Jonathan Morra <jonmorra at gmail.com>wrote:
>>>
>>>> This actually works backwards for me, but I think that's because my
>>>> camera is flipped.  Where is the source for this, I might be able to just
>>>> implement it correctly for me myself.
>>>>
>>>> But this is the idea that I had.
>>>>
>>>>
>>>> On Wed, Oct 20, 2010 at 9:40 AM, Jothy <jothybasu at gmail.com> wrote:
>>>>
>>>>> Click which about which point you wan tot zoom, then press"F" key.
>>>>>
>>>>> Jothy
>>>>>
>>>>> On Wed, Oct 20, 2010 at 5:36 PM, Jonathan Morra <jonmorra at gmail.com>wrote:
>>>>>
>>>>>> 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
>>>>>>
>>>>>> _______________________________________________
>>>>>> 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
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>> _______________________________________________
>> 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
>>
>>
>
>
> --
> Jesús Spínola
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101122/bed535db/attachment.htm>


More information about the vtkusers mailing list