MCPcopy Create free account
hub / github.com/Kitware/VTK / OnKeyRelease

Method OnKeyRelease

Views/Context2D/vtkContextInteractorStyle.cxx:456–474  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

454
455//------------------------------------------------------------------------------
456void 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//------------------------------------------------------------------------------
477void vtkContextInteractorStyle::ConstructMouseEvent(vtkContextMouseEvent& event, int button)

Callers

nothing calls this directly

Calls 5

BeginProcessingEventMethod · 0.95
EndProcessingEventMethod · 0.95
SetInteractorMethod · 0.45
SetPositionMethod · 0.45
KeyReleaseEventMethod · 0.45

Tested by

no test coverage detected