Hi Federico,

For what you want to do, Conditions are the way to go.
The idea is to define functions (Conditions) that check whether to execute the 
actions makes sense,
And return true/false depending on the situation.

So, if you want to return “false” meaning you don’t handle the event, you have 
to determine this in a condition
rather than an in an action (this behavior changed a while ago).

For how to use the conditions see :
PointSet.xml for how to define them

and
mitkPointSetDataInteraction.cpp for how to implement them,
its analog to actions but, their return value is checked and processed.

Let us know if you need any more help.

Best,
Christian


From: Federico Milano [mailto:[email protected]]
Sent: Freitag, 7. November 2014 19:43
To: [email protected]
Subject: [mitk-users] DataInteractor not attached to the 3D window

Hi. I'm working on an interactor that should work in the three 2D windows of 
the stdmultiwidget but it should execute the "default" interactor for the 
events generated in the 3D window. I can detect in which window each event is 
produced but I don't know how to reroute the event to another intectactor. At 
first I thought that I should return true from the event handler function if I 
managed the event and false otherwise, but I don't notice any change by doing 
such a thing.

I would really appreciate any hint about this issue.

Thanks in advance,

Federico
------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to