Hi Stefan,
Thanks for the suggestion, however when trying the Segmentation plugins eraser
tool I noticed that it has the exact same problem that I'm trying to solve:
When leaving the RenderWindow the eraser shape stays at the position of the
last MouseMove event until the mouse enters any of the RenderWindows again. Is
there no way to detect the mouse leaving the window?
Kind regards,
Bertram
From: Dinkelacker, Stefan [mailto:s.dinkelac...@dkfz-heidelberg.de]
Sent: 18 June 2018 19:12
To: Bertram Sabrowsky-Hirsch <bertram.sabrowsky-hir...@risc-software.at>;
mitk-users@lists.sourceforge.net
Subject: AW: DataInteractor: IntLeaveWidget
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<mailto: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