Page MenuHomePhabricator

Affine Interactor should inform when an interaction is completed
Closed, ResolvedPublic

Description

the affine interactor should inform listeners when an interaction has ended.
it should send out a message after actions:
-AcTRANSLATEEND
-AcROTATEEND
-AcSCALEEEND

Event Timeline

The change request is very short in most aspects.

  1. What you write sounds as if we could just use ITK's Modified(), since you do not distinguish between the different actions. What is the reason behind your way of implementing it?
  1. Writing a test case should be the default. The fact that there is no test case to enhance is no excuse for not writing a test, esp. with non-GUI classes which can be tested effectively with simple unit tests.

changed the implementation design from mitkMessage to the common itkEvent concept.

Four events will be defined. "AffineInteractionEvent" as base event. "ScaleEvent", "RotateEvent" and "TranslateEvent" for the different interactions.
These events will be invoked after the corresponding actions.

introduce new events

[SVN revision 29727]
FIX (#6932): added new events; events get invoked after interaction has ended