[vtkusers] Tk interactor problems with VTK5.2.0

Dr. Carsten Bellon Carsten.Bellon at bam.de
Wed Sep 17 05:41:09 EDT 2008


I found the right way. If I wand to modify a interactor style I have to 
add the observers to that style directly. Instead of just

duh_renWin_iren AddObserver LeftButtonReleaseEvent {bell}


one had to do

set style [[duh_renWin_iren GetInteractorStyle] GetCurrentStyle]

$style AddObserver LeftButtonReleaseEvent {bell; $style OnLeftButtonUp}


for example.

Dr. Carsten Bellon wrote:
 > I'm using vtkTkRenderWidget in my Tcl/Tk GUI. Than I choose the
 > trackball bindings by "SetCurrentStyleToTrackballCamera". Additional
 > mouse button bindings I define with "AddObserver ...". This works fine
 > with VTK 5.0.4 and earlier. But in VTK 5.2 the additional observers for
 > "...ButtonReleaseEvent" have no effect! Any help?
 >
 > For example, I added one line to MaceTk.tcl from Examples/GUI/Tcl of the
 > VTK distribution:
 >
 > duh_renWin_iren AddObserver LeftButtonReleaseEvent {bell}
 >
 > Using VTK 5.0.4 I can hear the sound, with VTK 5.2.0 not! (With
 > LeftBottonPressEvent it works in both VTK versions.)
 >
 > --
 > Dr.-Ing.         BAM Berlin * VIII.36 * D-12200 Berlin
 > Carsten Bellon   Tel/Fax: ++49 30 8104-3658 / -1837
 >                  Carsten.Bellon at bam.de
-- 

Dr.-Ing.         BAM Berlin * VIII.36 * D-12200 Berlin
Carsten Bellon   Tel/Fax: ++49 30 8104-3658 / -1837
                 Carsten.Bellon at bam.de




More information about the vtkusers mailing list