Commit c7dfbd84 authored by Sebastien Barre's avatar Sebastien Barre
Browse files

FIX: initialize interactor, add RightButtonRelease binding

parent d91f4b81
......@@ -198,6 +198,10 @@ namespace eval ::vtk {
[$istyle AddObserver RightButtonPressEvent \
"::vtk::cb_istyleimg_right_button_press_event $istyle"]
::vtk::set_widget_variable_value $istyle RightButtonReleaseEventTag \
[$istyle AddObserver RightButtonReleaseEvent \
"::vtk::cb_istyleimg_right_button_release_event $istyle"]
::vtk::set_widget_variable_value $istyle StartPickEventTag \
[$istyle AddObserver StartPickEvent \
"::vtk::cb_istyleimg_start_pick_event $istyle $vtkiw"]
......
......@@ -97,6 +97,7 @@ namespace eval ::vtk {
if {[$renwin GetInteractor] == ""} {
set iren [vtkGenericRenderWindowInteractor ${renwin}_iren]
$iren SetRenderWindow $renwin
$iren Initialize
}
# Mouse motion
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment