[vtkusers] QVTKWidget existing interactors

Drysdale, Jeremy jeremy.drysdale at philips.com
Wed Apr 14 14:46:55 EDT 2010


David,

Thanks for the info.  One other question comes to mind... short of testing with every possible interactor available, is there a list or a decent description somewhere?

Thanks,

Jeremy Drysdale
Distinguished Research Engineer
Prototyping
Philips Research North America
345 Scarborough Road
Briarcliff Manor, NY, 10510, USA
Tel: (914) 945-6612
E-mail: jeremy.drysdale at philips.com

Please consider the environment before printing this email.

-----Original Message-----
From: daviddoria at gmail.com [mailto:daviddoria at gmail.com] On Behalf Of David Doria
Sent: 2010 Apr 14 12:05 PM
Cc: Drysdale, Jeremy; vtkusers at vtk.org
Subject: Re: [vtkusers] QVTKWidget existing interactors

> On Wed, Apr 14, 2010 at 4:26 PM, Drysdale, Jeremy
> <jeremy.drysdale at philips.com> wrote:
>>
>> Hello VTK users,
>>
>>
>>
>> I am still fairly new to VTK, so please forgive my (likely) noob question...
>>
>>
>>
>> I have several QVTKWidgets on screen at one time (some showing 2D slices,
>> some showing a 3D volume).  I would like to add an interactor to these
>> widgets so that the 2D slice viewers will scroll through the slices with the
>> mouse wheel, the 3D volume viewer will roll/rotate with a mouse click/drag,
>> and both 2D and 3D have the capability to adjust window/level and zooming
>> via some mouse movement (doesn't matter how).  Scrolling and window/level
>> modifications are already available through sliders on the GUI.
>>
>>
>>
>> My question is, do interactors already exist that do this sort of thing?
>> Or is this something I must write custom?
>>
>>
>>
>> Thanks,
>>
>>
>>
>> Jeremy Drysdale
>>
>> Distinguished Research Engineer
>>
>> Prototyping
>>
>> Philips Research North America
>>
>> 345 Scarborough Road
>>
>> Briarcliff Manor, NY, 10510, USA
>>
>> Tel: (914) 945-6612
>>
>> E-mail: jeremy.drysdale at philips.com

What you're looking for are called interactor "styles". These classes
start with vtkInteractorStyleXYZ

Here are some examples demonstrating how to use SetInteractorStyle:

http://www.vtk.org/Wiki/VTK/Examples/InteractWithImage
http://www.vtk.org/Wiki/VTK/Examples/Interaction/TrackballCamera

Thanks,

David

The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.



More information about the vtkusers mailing list