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

Method OnKeyPress

Interaction/Style/vtkInteractorStyleUser.cxx:85–95  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

83
84//------------------------------------------------------------------------------
85void vtkInteractorStyleUser::OnKeyPress()
86{
87 if (this->HasObserver(vtkCommand::KeyPressEvent))
88 {
89 this->ShiftKey = this->Interactor->GetShiftKey();
90 this->CtrlKey = this->Interactor->GetControlKey();
91 this->KeySym = this->Interactor->GetKeySym();
92 this->Char = this->Interactor->GetKeyCode();
93 this->InvokeEvent(vtkCommand::KeyPressEvent, nullptr);
94 }
95}
96
97//------------------------------------------------------------------------------
98void vtkInteractorStyleUser::OnKeyRelease()

Callers

nothing calls this directly

Calls 4

HasObserverMethod · 0.80
GetKeySymMethod · 0.80
GetKeyCodeMethod · 0.80
InvokeEventMethod · 0.80

Tested by

no test coverage detected