Hi Everyone,
do we have any ideas on this?
Thanks
Matt
Begin forwarded message:
Date: 13 January 2012 11:57:48 GMT
To: <[email protected]<mailto:[email protected]>>
Subject: State Machine pattern - adding key press events
Hi there,
I am familiar with defining my own state machine pattern in xml and getting it
loaded and using this new pattern for a subclass of mitkTool.h to receive
events.
However, thus far, all my work has been done with mouse click events, all of
which are defined in StateMachine.xml.
However, in StateMachine.xml, the only key presses I can see are N, P, R, S, T,
E and a few combinations of shift/alt etc.
So, how do I add new key mappings? these would need a new event ID wouldnt they?
I basically want to map A,Z to go forward/backward a slice, and Q = Axial, W =
Sagittal, E = Coronal.
However these need to be passed to an editor part, and through to a specific
window, and so are not interactions with data.
So, rather than subclass mitkInteractor (as this suggests I am interacting with
a DataNode), I was going to subclass mitkStateMachine, and pass key press
events to a pure abstract interface which will be implemented by the widget I
chose to pass events to.
Does this sound reasonable?
Thanks
Matt
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users