Hi All

I am using MITK version 2013.09.0 and here I had a need to store some
properties in the mitk::Image.

As mitk::Image has base class as BaseData, so I thought of using
SetProperty function provided by BaseData. But found that while writing the
mitk workbench to disk, these properties are not written.

So another thought was to derive from mitk::Image and store my required
properties in the derive class. Wrote serializer, reader and writer for the
derived class, everything went well.

But today found out that the level window bar was missing and debugging
revealed that there are checks in

"mitk::DataStorage::SetOfObjects::ConstPointer
mitk::LevelWindowManager::GetRelevantNodes()"
function that checks if it is
Image, DiffusionImage, TensorImage, QBallImage. As this check fails as the
my derived image does not match that, the level window is not displayed.

Found that there is mitk::USImage that inherits from mitk::Image and that
adds some properties, but in this case also, it will not save these
properties while writing the workbench to disk.

So here I have 2 questions:

1. Have any of you guys faced the similar situation and if yes, how did you
fix it

2. Is there a reason behind this design, I mean why the properties are not
written from the base data. Or had there been a dynamic cast (though slower
than checking a string) here in GetRelevantNodes(), that could also have
solved the issue.

Any help is highly appreciated.

Thanks and Regards
Rachit Jain
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to