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

Method OnChar

Interaction/Style/vtkInteractorStyleUser.cxx:112–127  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

110
111//------------------------------------------------------------------------------
112void vtkInteractorStyleUser::OnChar()
113{
114 // otherwise pass the OnChar to the vtkInteractorStyle.
115 if (this->HasObserver(vtkCommand::CharEvent))
116 {
117 this->ShiftKey = this->Interactor->GetShiftKey();
118 this->CtrlKey = this->Interactor->GetControlKey();
119 this->Char = this->Interactor->GetKeyCode();
120
121 this->InvokeEvent(vtkCommand::CharEvent, nullptr);
122 }
123 else
124 {
125 this->vtkInteractorStyle::OnChar();
126 }
127}
128
129//------------------------------------------------------------------------------
130void vtkInteractorStyleUser::OnRightButtonDown()

Callers

nothing calls this directly

Calls 3

HasObserverMethod · 0.80
GetKeyCodeMethod · 0.80
InvokeEventMethod · 0.80

Tested by

no test coverage detected