[vtkusers] interaction off

Gopalakrishnan, Gowri Gowri.Gopalakrishnan at inteq.com
Mon Oct 8 07:04:15 EDT 2001


In c++ console application if I use renderwindow and not use the
renderwindow
interactor then the renderwindow flashes for a fraction of a second and then

vanishes. Unless you use the windowinteractor iren->start the image does not

stay on the screen. This leads to the problem of vtk handling the events 
when I dont want it to. Is there a method such as iren->turnInteractionOff.
I saw a method InteractionOff and used it, but it did not produce anything.
My
mouse events were still going to vtk. 

If anyone thinks otherwise I would be happy to learn the behaviour of vtk
with
c++ applications. 

Thanks Prabhu for your help
Regards
Gowri


-----Original Message-----
From: Prabhu Ramachandran [mailto:prabhu at aero.iitm.ernet.in]
Sent: Monday, October 08, 2001 11:28 AM
To: Gopalakrishnan, Gowri
Cc: VTK users list
Subject: [vtkusers] interaction off


hi,

>>>>> "GG" == Gowri Gopalakrishnan <Gopalakrishnan> writes:

    GG> Hello , How can we turn off interaction (mouse and key events)
    GG> in vtk completely?.

<snip>

    GG> in my canvas/frame in java and do what I want. When vtk is off
    GG> the same canvas/frame is able to catch the events. Therefore I
    GG> want to turn the ability of vtk to react to key and mouse
    GG> press events off.

If you use the vtkRenderWindow and dont use the RenderWIndowInteractor
I dont think any of the events are captured.  This is what the Tk,
GTK, wx widgets under Python do.  They embed a vtkRenderWindow inside
a native widget and then trap the various events in the native gui
toolkit.  So VTK doesnt process the events at all.

OTOH if you want to use something like the interactor and turn it on
and off - I dont know the answer off hand.


prabhu



More information about the vtkusers mailing list