Hi Christian, 1. you are right, you shouldn't have to change the core. Lately I have been working on an extension towards the state machine mechanism. >From Revision #27351 on you have the possibility to load user specified xml >files containing state machine patterns. For an example on how to use it see mitkStateMachineFactoryTest.
2. That's a little more tricky: Since the operating system doesn't send events "Space-pressed and Mouse-moved" you will have to implement it yourself. E.g. define a pattern that goes from one state to the next in case space is pressed. Then listen for mouse move events. Then leave the state once space is released. By the way, it is much easier if you use a modifier key (Shift/Strg/Alt/Meta etc). This way you can catch the event "Modifier-key and Mouse-moved". Each "regular" key submits an event on its own while modifier keys add their state to events caused by regular keys. Best Regards, Ingmar -----Ursprüngliche Nachricht----- Von: Wilhelm, Christian [mailto:[email protected]] Gesendet: Montag, 24. Januar 2011 18:21 An: '[email protected]' Betreff: [mitk-users] Question to Events and the State machine in mitk Dear Sir or Madam, I am writing a plug-in for the Ext-App. Usually you should never change the core of the main project for your plug-in. That's why I want to know if there is another way to interact with the ExtApp next to adding statemachines in the xml. My second question is about the state machine. I want to use the mousemove event while i am pressing a button ( for example the space button or the "m" button). For this I need to add the Buttonstate of this button into the move mouse event definition, am I? Where I get the information which button effects in which buttonstate? Maybe I have to add the buttonstate of buttons, which are unused at the momant, by my self, but what I have to do for this? Thanks for your help. Christian Wilhelm ______________________________________________________________ Christian Wilhelm SHK Innovation Center Computer Assisted Surgery (ICCAS) Semmelweisstraße 14 D -- 04103 Leipzig Germany [email protected] ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
