Hi Matt,

thank you for filing the bug and thank you for your contribution! I will take 
care of it in the wednesday session tomorrow!

Best
Andreas


On 20.01.2012, at 18:29, Clarkson, Matt wrote:

Hi there Andreas,

thanks for this.

I have raised bug
http://bugs.mitk.org/show_bug.cgi?id=10747

and checked code in. Please let me know what you think?

Thanks

Matt



Begin forwarded message:

From: "Fetzer, Andreas" 
<[email protected]<mailto:[email protected]>>
Date: 20 January 2012 08:52:39 GMT
To: "Clarkson, Matt" <[email protected]<mailto:[email protected]>>
Cc: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: Re: [mitk-users] State Machine pattern - adding key press events

Hi Matt,

you will definitely need new event IDs which have to be declared in the state 
machine.xml and in mitkInteractionConst.h. If I got it right you want to 
navigate through e.g. the transversal view by holding Q pressed and then 
pressing A or Z to step up and down.

One possible solution could be:

Enhance the state machine pattern "navigation" which is applied to the 
SliceNavigationController (SNC). Of course you need to adapt the ExecuteAction 
and ExecuteOperation function in the SNC too. With the Q,W and E key you should 
be able to determine the correct SNC by comparing the according BaseRenderer.

Navigating through slices by key strokes could be generally a interesting 
feature for us. If you are not in a great hurry we would like to discuss that 
in our next meeting.

Best regards
Andreas



On 17.01.2012, at 10:54, Clarkson, Matt wrote:

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]><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]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/mitk-users



------------------------------------------------------------------------------
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


------------------------------------------------------------------------------
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

Reply via email to