[vtkusers] VtkTkRenderWidget and Python....

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


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




More information about the vtkusers mailing list