Hi Daphné,

As far as I am aware your impression is right for our own interactors and our 
DataInteractor expects to load the statemachine from the resources/Interaction 
folder of the respective module. If you derive your custom interactor though 
you should be able to override that though. I could not say however how nicely 
it will play with the interaction concept of your own application. You could 
prototype it by basically creating your own project out of our tutorial step 5 
[1] and try to implement your interaction there. How well this transfers to 
your target application will vary though.

I hope this helps,
Caspar

[1] http://docs.mitk.org/nightly/Step05Page.html


-----Ursprüngliche Nachricht-----
Von: Daphné Wallach [mailto:daphne.wall...@hrv-simulation.com] 
Gesendet: Montag, 4. September 2017 18:08
An: Dinkelacker, Stefan; mitk-users@lists.sourceforge.net
Betreff: [mitk-users] Defining a custom state machine outside the Mitk 
environment

Dear Mitk users,

I am developping an application using Mitk as a library.

The application shows a view with a multi widget, showing different views of 
the dataset. I am now trying to develop a feature where the user can define a 
3D object on the multiwidget. This 3D object is a concatenation of cylinders, a 
kind of 3D version of a non-closed planar polygon. Its points are defined by 
clicking on any view. Like for the planar figure interaction, a double click 
finishes the interaction.

I think I need to define a custom data interactor, as well as a custom state 
machine, is that right? Or is anything similar already present in Mitk, that I 
could reuse?

Also, is it possible to define a custom state machine, when I am using Mitk as 
a library? Reading the documentation, I was under the impression that a custom 
state machine was only usable inside a Mitk module. Or is there another way to 
define a custom interaction?

I would greatly appreciate any help. Thanks in advance!

Daphné

--
Daphné Wallach
Ingénieur de recherche
http://www.hrv-simulation.com


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to