[vtkusers] mouse events

Galen Wilkerson galen at sp1.compbio.washington.edu
Wed Sep 18 15:34:39 EDT 2002


I'm using vtk3.2, since I couldn't get 4.0 installed (with python on 
redhat 7.3).

Any hints on getting vtk 4.0 installed would be greatly appreciated.

Also, hints on making a tkinter gui (mostly for menubars, etc.) with a vtk 
window in it would be most helpful.  All in python.

Any vtk w/python book recs?

cheers,
-Galen


On Wed, 18 Sep 2002, Prabhu Ramachandran wrote:

> >>>>> "GW" == Galen Wilkerson <galen at sp1.compbio.washington.edu> writes:
> 
>     GW> I'm trying to understand how to capture mouse events in VTK
>     GW> with Python.
> 
>     GW> It looks like I have to write my own Start() method for
>     GW> vtkRenderWindowInteractor , but I'm guessing.
> 
> What toolkit are you using?  vtkRenderWindowInteractors for Tkinter,
> pyGTK, wxPython and Qt are available.  This is all in CVS but I think
> it was committed about 5-6 months back.
> 
> To capture the mouse just add a new observer for the right event and
> do what you need.
> 
>     GW> If there are any simple examples of this, I'd be grateful.
>     GW> (For instance, how to select an object that is displayed on
>     GW> the screen by clicking on it, or dragging over it.)
> 
> You are looking for a Picker.  Try one of the vtkPickers.
> 
> cheers,
> prabhu
> 




More information about the vtkusers mailing list