Hi Stefan,

I tried the persistence service and I got this error each time I use GetPeristenceService().

WARNING: In us::GetModuleContext at \Modules\CppMicroServices\core\include\usGetModuleContext.h:57 : Module 'org_imeka_qt_brainanalysis' unknown. The calling module probably misses a US_MODULE_NAME compile definition and/or a call to US_INITIALIZE_MODULE in one of its source files.

I didn't find such a thing in the QmitkOpenCVVideoControls example so I randomly added a US_INITIALIZE_MODULE in my plugin activator and now GetPersistenceService() finds its module but returns a nullptr. I can't give you more information than that because PersistenceService.h is a macro hell.

Do you know how to make it work?

Nil

Le 2016-03-07 09:35, Nil Goyette a écrit :
Hi Stefan,

/These properties can be stored inside a MITK scene together with the data so that the user loads data and restores the application state at once./ - MITK Persistence Service

I can't test it now but this is exactly what I needed. Thank you.

Nil


Le 2016-03-07 01:29, Kislinskiy, Stefan a écrit :
Hi Nil,

please seehttp://docs.mitk.org/2015.05/PersistenceConceptPage.html.

Best,
Stefan
________________________________________
Von: Nil Goyette [nil.goye...@imeka.ca]
Gesendet: Freitag, 4. März 2016 15:15
An:mitk-users@lists.sourceforge.net
Betreff: [mitk-users] Scene properties

Hi all,

Is there a concept of scene property? I have some parameters(widget) in
my plugin, like MinFiberLength, MaxFiberLength, etc. which are not saved
when I save the scene. These parameters don't belong to any node, and
they don't fit as a Preference because the user will probably change
them when loading other data. That leaves me with "scene property", but
I don't think they exist.

My plan is to put the properties in a hidden node, but it does seem like
an hack. It's still the less hackish method I can find without modifying
MITK's code. Is there a right way to do that?

Nil
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to