Hi Alyson,

could you try to listen in the StateMachine xml for the event variant: 
IsOnCenterRotation
instead of CenterRotationSelected , I think InternalEvents have no mapping and 
no event config entries

    <transition event_class="InternalEvent" 
event_variant="CenterRotationSelected" target="IsOnCenterRotation ">
       <action name="centerMode"/>
    </transition>

Just found the part in the PointSet Config, where you probably picked up the 
SignalName notation for internal events , I will remove this section from the 
config as it is very misleading.

Cheers,
Christian


Von: Alyson Roger [mailto:[email protected]]
Gesendet: Mittwoch, 29. Januar 2014 18:55
An: [email protected]
Betreff: Re: [mitk-users] Problem with the use of InternalEvent for interactions

Sorry the rest of the mail was not sent
So I go on
   - MyPlane.xml

    <transition event_class="InternalEvent" 
event_variant="CenterRotationSelected" target="CenterRotationMode">
       <action name="centerMode"/>
    </transition>

The function centerMode is never activated and I do not understand why. Hope 
someone can find a clue on this.
Thank you very much.

2014-01-29 Alyson Roger 
<[email protected]<mailto:[email protected]>>
Hello everyone,
I am actually implementing my interaction for my mitkWorkBench 's application, 
and find some issues with the InternalEvent interaction.
I want to send an InternalEvent to my Dispatcher when my mouse is located at a 
specific position on the RenderingWindow. For that I implemented this code in 
the MyPlaneInteractor.cpp

if (  *mouse pointer in the bounding box * )
 {
     InternalEvent::Pointer event = InternalEvent::New(NULL, this, 
"IsOnCenterRotation");
     
interactionEvent->GetSender()->GetDispatcher()->QueueEvent(event.GetPointer());
}
My .xml files are like this :
   -  MyPlaneConfig.xml

  <event_variant class="InternalEvent" name="CenterRotationSelected">
    <attribute name="SignalName" value="IsOnCenterRotation"/>
  </event_variant>







------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to