[vtkusers] Interaction with VTK window

Mathieu Malaterre Mathieu.Malaterre at creatis.insa-lyon.fr
Mon Oct 13 07:57:05 EDT 2003


subin wrote:
> Dear Vtk User:
>     I'm going to write a program with VTK in MFC. I don't know how to 
> interact with the VTK window. If anyone can show me how to do it or show 
> me some examples?
>     I have derive a class from  vtkWin32RenderWindowInteractor. I want 
> to redirect the Function OnRButtonDown(). 

Don't derive vtkWin32RenderWindowInteractor ! vtkRenderWindowInteractor
has virtual methods instead.

But I don't know where the
> function OnRButtonDown() to be called?
>     Thanks a lot.

Have a look at:

VTK/Examples/GUI/Win32/SampleMFC
VTK/Examples/GUI/Win32/vtkMFC

HTH
mathieu




More information about the vtkusers mailing list