Re: [mitk-users] DataStorage in module

2015-07-22 Thread Sascha Zelzer
Hi, In the writer case, the assumption was that a BaseData object is self-contained. Can you had the required information during reading as BaseData properties, so you can access them in the writer? However, I currently cannot think of a reason why we couldn't add a write method to IFileWriter

Re: [mitk-users] DataStorage in module

2015-07-22 Thread Nil Goyette
Hi Sascha, Nice, I wasn't aware of the Read(DataStorage&) method. It does what I need. Except I also need the DataStorage in the writer class, which, afaik, can't access the DataStorage. As I don't see any alternative, I'll keep my hack as-is for now. It's a singleton in the FiberTracking modul

Re: [mitk-users] DataStorage in module

2015-07-21 Thread Sascha Zelzer
Hi Nil, there is a feature request about moving the IDataStorageService class to a module and make it accessible from a module context (which would publish it as a service for plugins as well) but it didn't get much attention yet: http://bugs.mitk.org/show_bug.cgi?id=17912 You are talking abou

[mitk-users] DataStorage in module

2015-07-21 Thread Nil Goyette
Hi all, I know it's possible to access the DataStorage in a view (with GetDataStorage) and in a plugin (with the plugin's context and IDataStorageService), but I have a special case where I need the DataStorage in a IO module. Before you tell me "Don't do that", here's my use-case :) The user