hello Mitk users,

I am defining my own interaction according to the last discussion on "add a
new state machine".  I want to realize a mouse hover that detect if a
DataNode is present in the RenderingWindow at the same position as my mouse
pointer. The interactor detects the movement of the mouse, but when I
intend to pick up the coordinates of the mouse pointer in the
RenderingWindow through the DisplayPositionEvent, it gives me NULL results.

Here is my code where I can not go over the while loop for any position of
the mouse.

bool mitk::MyPlaneDataInteractor::ColorOnPlane(StateMachineAction*
stateMachineAction, InteractionEvent* interactionEvent)
{
    const DisplayPositionEvent *dpe = dynamic_cast<const
DisplayPositionEvent*>(interactionEvent);
    while(dpe == NULL)
    {
        break;
    }

 ... rest of the code

}


Someone has any idea of how can I pick up my mouse position with my
interactor?

Thanks.


-- 
*Alyson ROGER*

*+54 11 5645-8674*
*[email protected] <[email protected]>*
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to