Hi,

I don't know about IntLeaveWidget, but there is an eraser tool in the 
segmentation plugin that uses the 
PressMoveReleaseWithCTRLInversionAllMouseMoves interaction statemachine. This 
interaction is located in the Resources/Interactions folder of the Segmentation 
module.

Best,
Stefan

Von: Bertram Sabrowsky-Hirsch [mailto:bertram.sabrowsky-hir...@risc-software.at]
Gesendet: Monday, June 18, 2018 3:56 PM
An: mitk-users@lists.sourceforge.net
Betreff: [mitk-users] DataInteractor: IntLeaveWidget

Hi everyone,

I am trying to implement a DataInteractor for an Eraser tool.
For this I want to visualize the erasers Region in the RenderWindow.
I figured that I can do this using a mitk::Annotation2D to render a 
Shape(transparent circle) that I reposition on every MouseMove event.
However, there is no MouseMove event once the cursor leaves the RenderWindow. 
The shape than just stays at the last position within the window.
When I looked for a solution, I stumbled over DataInteractor::IntLeaveWidget 
which, according to the comment is an internal event.
However, connecting to this event, directly (CONNECT_FUNCTION) or in the 
StateMachine configuration (transition with event_class="InternalEvent" 
event_variant="LeaveWidget") has no effect.
Is this internal event still in use and if so, how can I connect to it? Are 
there other approaches to this problem?

Kind regards,

Bertram
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to