Hello!

Well, I think I managed to solve my problems for now :). Do not know if there was some more straightforward way to do it. Basically a wrote my own position tracker (from mitk::PositionTracker) to have full control on what happens concerning mouse movements and events and then selected a statemachine which includes the events I am interested in and process them.

Best regards,
Samuel

Samuel Silva wrote:
Hello, good morning!

I have lately started to explore the interactors in MITK and I ran into some questions for which I could not find an answer. Please forgive me if the answers are written somewhere along the documentation. In that case, please point me where.

So, here are the questions:

1) How do I "observe" interactor events? For example, if I have a pointset interactor,

pointSetInteractor = mitk::PointSetInteractor::New("singlepointinteractor", pointSetNode, 1);
mitk::GlobalInteraction::GetInstance()->AddInteractor(pointSetInteractor);

how can I be notified that a new point is present on the pointSet? I tried to add an Observer waiting for all sorts of events (even itk::AnyEvent()) with no luck. So, I guess I am going the wrong way.

2) I have been looking into the statemachine.xml. The "positionTraker" state machine gives me mouse position on mouse move? I am interested in having that kind of information to attach a different cursor (but rendered on the renderer) when hovering the image. How should I declare such an interactor? Can it be used with a pointset also?

3) Is there any statemachine which configures an interactor to only be active when a mouse button is pressed?

Basically, what I want is to the following behavior:

mouse moving over the image -> special cursor rendered at that position over the image; left mouse button pressed +move -> perform processing on the position's neighborhood left mouse release -> only the special cursor remains and processing neighborhoods stops.

Many thanks for all the help you can provide me.

Best regards,
Samuel

------------------------------------------------------------------------

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
------------------------------------------------------------------------

_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to