Hi Miklos,

sorry for  the delay. For the tool framework there is some work done. You can 
follow the progress here:
http://bugs.mitk.org/show_bug.cgi?id=15828

Regards,
Christian


Von: Miklos Espak [mailto:[email protected]]
Gesendet: Donnerstag, 1. August 2013 12:06
An: Weber, Christian(1)
Cc: Zelzer, Sascha
Betreff: Re: [mitk-users] PointSetDataInteractor switches on show contour 
property on data node change

For the sake of completeness, you can see my answer below.

Summarising it, I found a workaround for this issue, but ran into two others 
that I did not have time to debug yet, and do not know if those are problems in 
MITK or in our app. Anyway, I had to postpone the transition to the new 
framework also because I have to work on other projects now. I will get back to 
you if I find something else.

Just for curiousity, do you plan to migrate the Tool framework to the new state 
machines as well?

Miklos

On 18 July 2013 11:28, Miklos Espak <[email protected]<mailto:[email protected]>> 
wrote:
Thank you, Christian!

I found an easy workaround for this by overriding the DataNodeChanged function 
and setting back the original value of the property after the super call.

Actually, I have two other problems, but have not finished debugging them, so I 
do not know if they are problems with the mitk::PointSetDataInteractor or 
something else in my code. The first is that sometimes the seed is put not to 
only one slice, but to each of them, or to a (continuous) sequence of slices.

The other is that, only the left mouse click event is processed by the 
interactor. This is probably caused by a bad state machine or event config xml 
in my app, or because I try to use it from within a seed tool and the tools 
still uses the old state machine description.

Just for curiousity, do you plan to migrate the Tool framework to the new state 
machines as well?

Cheers,
Miklos


On 18 July 2013 10:13, Weber, Christian(1) 
<[email protected]<mailto:[email protected]>> wrote:
Hi Miklos,

you're right that's not the intended behavior.
Thanks for reporting the line.
I opened a bug and pushed a branch where this line and some others are removed:

http://bugs.mitk.org/show_bug.cgi?id=15634

if you come across more problems with the PointSetDataInteractor you can attach 
them to this bug.

Regards
Christian

Von: Miklos Espak [mailto:[email protected]<mailto:[email protected]>]
Gesendet: Mittwoch, 17. Juli 2013 12:55
An: mitk-users
Betreff: [mitk-users] PointSetDataInteractor switches on show contour property 
on data node change

Hi,

I would like to switch to the new data interaction framework. As a first step I 
tried to replace the PointSetInteractor by PointSetDataInteractor, but I 
noticed a problem.

The added seeds are connected by lines on the display, although I set the "show 
contour" property of the point set node to false, manually, after creation.

It turned out that this is caused by the following line in 
Core/Code/Interactions/mitkPointSetDataInteractor.cpp:258






    // find proper place for this command!





    // maybe when DN is created ?





    GetDataNode()->SetBoolProperty("show contour", true);







Could this be removed? :)







Thank you,

Miklos








------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to