[vtkusers] vtkRenderWindowInteractor

Andres Barrera andresba at hotmail.com
Tue Oct 22 17:08:42 EDT 2002


Hi Marc,

  Finally what I did is catching the KEY event myself and call
        "iren->GetInteractorStyle()->OnChar(0,0,'w', 1);"
  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

   Andres

>
>Hi again
>
>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 
>was,
>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 
>can
>rubber band, etc. in real time and just pass the mouse clicks to the
>renderer.
>
>Just thought I'd pass that on.
>
>So long
>
>-----Original Message-----
>From: Andres Barrera [mailto:andresba at hotmail.com]
>Sent: Tuesday, October 22, 2002 3:21 PM
>To: Jaspar,Marc,TRENTON,Engineering
>Subject: RE: [vtkusers] vtkRenderWindowInteractor
>
>
>Thank you Marc,
>
>   I've been trying both Camera and Actor mode (TrackBall and Joystick), 
>but
>it still doesn't get the keyboard events........
>
>   I'll keep trying things.
>
>    Thank you again!
>
>   Andres
>
> >
> >Hi
> >
> >I had the same problem with Borland (though it's not a Borland problem).  
>I
> >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
> >interaction
> >
> >to my own wondow (or other objects like pannels, etc.)
> >
> >   I have no preoblem getting the mouse events, but the default keyboard
> >"c",
> >
> >"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.
>http://resourcecenter.msn.com/access/plans/2monthsfree.asp


_________________________________________________________________
Unlimited Internet access -- and 2 months free!  Try MSN. 
http://resourcecenter.msn.com/access/plans/2monthsfree.asp




More information about the vtkusers mailing list