Commit 74a35b4b authored by Utkarsh Ayachit's avatar Utkarsh Ayachit
Browse files

Forward InteractionEvent to Interactor.

vtkInteractorStyle already forwards StartInteraction and EndInteraction
events via the vtkRenderWindowInteractor set on it. It only makes sense
to forward the InteractionEvent as well. Applications needing
StartInteraction and EndInteraction events are quite likely to need the
InteractionEvent as well. Current approach is to list to that event
directly on the vtkInteractorStyle instance -- which is a little weird
since the StartInteraction/EndInteraction events can be directly
observed on the vtkRenderWindowInteractor.

Change-Id: I61d6ee39b53f2b990d2a1aad5df7bcf18d3800e1
parent 539e5c94
......@@ -266,6 +266,7 @@ void vtkInteractorStyle::SetInteractor(vtkRenderWindowInteractor *i)
if (this->Interactor)
{
this->AddObserver(vtkCommand::StartInteractionEvent, this->EventForwarder);
this->AddObserver(vtkCommand::InteractionEvent, this->EventForwarder);
this->AddObserver(vtkCommand::EndInteractionEvent, this->EventForwarder);
}
else
......
Markdown is supported
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