[vtkusers] vtkWin32RenderWindowInteractor - My Own Bindings

John Biddiscombe jbiddiscombe at skippingmouse.co.uk
Thu Aug 30 18:49:14 EDT 2001


MouseDown, then MouseMove...then MouseUp. The interactor maintains a 
primitive "state" which needs to be correctly initialized. If you want to 
do things greatly differently from the existing trackball/joystick/flight 
modes then you're better off creating an interactorstyle subclass yourself 
and routing events via the mousedown/up calls etc.

JB

At 20:09 30/08/2001, Ted Christiansen wrote:
>Hello,
>
>I am having trouble defining my own bindings for the
>vtkWin32RenderWindowInteractor class in my MFC based program.  I like
>the way the interactor works, but I would like to control the different
>motions in the GUI myself, i.e. pan, rotate, zoom.  I have looked at the
>declaration and found an OnMouseMove function:
>
>virtual void OnMouseMove  (HWND wnd, UINT nFlags, int X, int Y);
>
>But when I call this instead of using WindowProc, it doesn't work.  I am
>passing MK_LBUTTON ORd with MK_SHIFT (makes 5) in nFlags and the CPoint
>point.x and point.y into X and Y.  I think this is right, yet it doesn't
>work.
>
>What am I missing?
>
>Ted
>
>
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: 
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers





More information about the vtkusers mailing list