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



------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to