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

Function ChangeMag

Interaction/Widgets/Testing/Python/TestMagnifierWidget.py:496–501  ·  view source on GitHub ↗
(widget, event_string)

Source from the content-addressed store, hash-verified

494
495# Observe events for magnification factor change
496def ChangeMag(widget, event_string):
497 if iRen.GetKeyCode() == '+' :
498 magF = magRep.GetMagnificationFactor() + 1
499 else:
500 magF = magRep.GetMagnificationFactor() - 1
501 magRep.SetMagnificationFactor(magF)
502
503# Add the magnifier widget
504magRep = vtkMagnifierRepresentation()

Callers

nothing calls this directly

Calls 1

GetKeyCodeMethod · 0.80

Tested by

no test coverage detected