[vtkusers] Zoom to window problem
Clinton Stimpson
clinton at elemtech.com
Fri Sep 23 11:12:07 EDT 2005
>
>
>Date: Fri, 23 Sep 2005 14:27:41 +0530
>From: "Bharati" <bharati at sungrace.com>
>Subject: [vtkusers] Zoom to window problem
>To: <vtkusers at vtk.org>
>
>Hi,
>
>I am using Qt 3.2.3. I have a class derived from QVTKWidget in my Qt
>project. I want to implement zoom to window facility. I have trapped the
>mouse events and got the coordinates of mousePress and mouseRelease.
>With this data which vtk structures associated with QVTKWidget should be
>used to zoom the area selected by the user? I tried changing 'zoom'
>factor of active camera, but I could not calculate the proper zoom
>factor and adjust the view window as per selection by mouse.
>
>Can somebody help me to solve this?
>
>With regards,
>Bharati Page.
>
I'm curious why you don't use vtkInteractorStyle and its subclasses for
event handling.
Here is code for an idea on how rubberband zooming is done.
http://public.kitware.com/pipermail/vtkusers/2002-August/062422.html
Clint
More information about the vtkusers
mailing list