andresba at hotmail.com
Tue Oct 22 17:08:42 EDT 2002
Finally what I did is catching the KEY event myself and call
with the proper CHAR ('w' in this example)
For sure there is a better way to do that, but I had enough for today. May
be sometime I will change it.
Thanks again for your collaboration
>There is a way you can toggle with the correct key between the two
>interactor modes. It's been so long ago now I forgot how to do it.
>I had the same problem and after toggling, it worked correctly.
>Something else that I did, in case you're interested. I found the
>interaction using the mouse very sluggish so the way I got around to it
>I created my own invisible window above the renderer (same size, same pixel
>alignment). I have all the required info to do this even in 3D. I then
>rubber band, etc. in real time and just pass the mouse clicks to the
>Just thought I'd pass that on.
>From: Andres Barrera [mailto:andresba at hotmail.com]
>Sent: Tuesday, October 22, 2002 3:21 PM
>Subject: RE: [vtkusers] vtkRenderWindowInteractor
>Thank you Marc,
> I've been trying both Camera and Actor mode (TrackBall and Joystick),
>it still doesn't get the keyboard events........
> I'll keep trying things.
> Thank you again!
> >I had the same problem with Borland (though it's not a Borland problem).
> >change the interactor style and the keyboard worked fine.
> >So Long
> >-----Original Message-----
> >From: Andres Barrera [mailto:andresba at hotmail.com]
> >Sent: Tuesday, October 22, 2002 2:52 PM
> >To: vtkusers at public.kitware.com
> >Subject: [vtkusers] vtkRenderWindowInteractor
> >Hello list,
> > I am using vtk 4.0 and C++ (Borland). I assign the display and
> >to my own wondow (or other objects like pannels, etc.)
> > I have no preoblem getting the mouse events, but the default keyboard
> >"w", "t", etc doesnt't work. Why am I getting the MOUSE events by and not
> >KEY events?
> > vtkRenderWindowInteractor *iren; // an interactor
> > ....
> > renWin->SetParentId ( MainForm->Handle );
> > iren = vtkWin32RenderWindowInteractor::New();
> > iren->SetRenderWindow(renWin); // begin interaction
> > Thank you in advance for any help or idea
> > Andres
>Unlimited Internet access -- and 2 months free! Try MSN.
Unlimited Internet access -- and 2 months free! Try MSN.
More information about the vtkusers