------------------------------------------------------------------------------
| 454 | |
| 455 | //------------------------------------------------------------------------------ |
| 456 | void vtkContextInteractorStyle::OnKeyRelease() |
| 457 | { |
| 458 | this->BeginProcessingEvent(); |
| 459 | vtkContextKeyEvent event; |
| 460 | vtkVector2i position( |
| 461 | this->Interactor->GetEventPosition()[0], this->Interactor->GetEventPosition()[1]); |
| 462 | event.SetInteractor(this->Interactor); |
| 463 | event.SetPosition(position); |
| 464 | bool keepEvent = false; |
| 465 | if (this->Scene) |
| 466 | { |
| 467 | keepEvent = this->Scene->KeyReleaseEvent(event); |
| 468 | } |
| 469 | if (!keepEvent) |
| 470 | { |
| 471 | this->Superclass::OnKeyRelease(); |
| 472 | } |
| 473 | this->EndProcessingEvent(); |
| 474 | } |
| 475 | |
| 476 | //------------------------------------------------------------------------------ |
| 477 | void vtkContextInteractorStyle::ConstructMouseEvent(vtkContextMouseEvent& event, int button) |
nothing calls this directly
no test coverage detected