Page MenuHomePhabricator

Enhance StateMachine for LeftClickScroll, Zoom and Pan
Closed, ResolvedPublic

Description

The 3 statemachines need to be enhanced so that the alt modifier key can be used. Only new transitions need to be added.

Event Timeline

The mitkDisplayVectorInteractorScroll class also needs to be enhanced, so that it can be determined if the alt modifier has been pressed or not.

changes to the mitkDisplayVectorInteractorScroll:

  • new member: m_IsAltModifierActive
  • check if alt modifier button has been pressed -> set m_IsAltModifierActive accordingly
  • changed Start/EndInteractionEvent to Start/EndScrollInteractinoEvent
  • added case for mousewheel scroll event (normally done by the RenderWindowBase and not with interactors)

changes to the statemachine:

  • added new events, e.g. SHIFT+ALT+RightMouseBN
  • added new transitions to statemachines of scrolling and panning (so that the alt modifier key can be used)

changes to the baserenderer:

  • the mousewheel event is now passed on as mousewheelevent additionaly to the positionevent

[d1bfa2]: Merge branch 'bug-9342-enhance-statemachine-scroll-zoom-and-pan'

Conf

Merged commits:

2011-09-14 16:28:08 Danial Bin Mohamed Saruji [1c3384]
removed unwanted MITK_INFO


2011-09-14 16:25:55 Danial Bin Mohamed Saruji [27e7e2]
wrong type: corrected event alt+shift+rightBN+MouseMove


2011-09-14 13:22:01 Danial Bin Mohamed Saruji [9de4f5]
added new event to statemachine


2011-09-13 11:59:36 Danial Bin Mohamed Saruji [02a505]
changed mouse wheel interaction


2011-09-09 17:10:25 Danial Bin Mohamed Saruji [3ea289]
enhance statemachine for zoom, scroll and pan


2011-09-01 09:32:08 Mathias Seitel [82feef]
Merge branch 'bug-9232-planarfigure-control-point-overlap' into releases/snapshot-201109