[vtkusers] VtkTkRenderWidget and Python....

David Gobbi dgobbi at irus.rri.ca
Wed Apr 10 15:23:03 EDT 2002


Hi Bill,

Will it play nice with the tk (or for python, the Tkinter)
interaction loop?  The problem with using the RenderWindowInteractors
in the python right now is that can't be used alongside python/tk.

 - David

--
  David Gobbi, MSc                       dgobbi at irus.rri.ca
  Advanced Imaging Research Group
  Robarts Research Institute, University of Western Ontario

On Wed, 10 Apr 2002, Bill Hoffman wrote:

> I am working on a class called vtkGenericRenderWindowInteractor that will allow
> the styles to work from tcl/tk, python, or java.  I should be able to check it
> in this week.
>
> -Bill
>
>
>
> At 03:03 PM 4/10/2002 -0400, David Gobbi wrote:
> >Hi Marcelo,
> >
> >The python vtkTkRenderWidget only has code for moving the camera,
> >it doesn't have any code for moving the individual actors like the
> >RenderWindowInteractor does.  If you want to move the plane around, you
> >would have to add a fair bit of code to vtkTkRenderWidget.py.
> >
> > - David
> >
> >--
> >  David Gobbi, MSc                       dgobbi at irus.rri.ca
> >  Advanced Imaging Research Group
> >  Robarts Research Institute, University of Western Ontario
> >
> >On Wed, 10 Apr 2002, Ailton Santa Barbara wrote:
> >
> >>   Hi all,
> >>
> >>
> >>   We are using the vtkTkRenderWidget class to prevent the main program
> >> crash and It works. The problem is that the "a" key
> >> doesn't work in the interaction with mouse and keyboard - this key
> >> allows to move a plane.
> >>   In this mail you can see a part of the vtkTkRenderWidget class. We put
> >> a new bind (for "a"-key) and we create the def "Animation".
> >> We believed that this def would do the same stuffs that the key-a
> >> implementation in the vtkInteractorStyle, whose code is here too,
> >> but only the entire cube is moved (we can't select the plane).
> >>
> >>
> >>   Could anyone help me with this or with other solution???
> >>
> >>   Thank you.
> >>
> >>   Marcelo
> >
> >_______________________________________________
> >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