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

Method GetModifier

Interaction/Widgets/vtkEvent.cxx:60–68  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

58
59//------------------------------------------------------------------------------
60int vtkEvent::GetModifier(vtkRenderWindowInteractor* i)
61{
62 int modifier = 0;
63 modifier |= (i->GetShiftKey() ? vtkEvent::ShiftModifier : 0);
64 modifier |= (i->GetControlKey() ? vtkEvent::ControlModifier : 0);
65 modifier |= (i->GetAltKey() ? vtkEvent::AltModifier : 0);
66
67 return modifier;
68}
69
70//------------------------------------------------------------------------------
71void vtkEvent::PrintSelf(ostream& os, vtkIndent indent)

Callers 1

PrintSelfMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected