Aha!
That makes sense.
Lovely.

M

> On 12 Aug 2015, at 13:14, Rostislav Khlebnikov 
> <[email protected]> wrote:
> 
> Hi Matt,
> 
> if you take a look at the mitk scene file - it's just a plain zip file. 
> You can open it with any archive manager.
> The saving-to-mitk-scene process is as simple as:
>   - Create temp folder
>   - Write metadata as separate files (base data and node properties and 
> scene structure)
>   - Write all base datas using their serializers
>   - Compress it all to an mitk scene file
> 
> It might change slightly if my incremental saving contribution gets 
> integrated, but from the point of view of serializers, nothing changes.
> 
> Rostislav.
> 
> On 12/08/2015 13:08, Clarkson, Matt wrote:
>> Hi there,
>> 
>> I’m trying to write a custom data type into the .mitk scene file. Is that 
>> possible?
>> 
>> As far as I can tell, I have to create a sub-class of BaseDataSerializer and 
>> call MITK_REGISTER_SERIALIZER which registers it with the ITK object factory 
>> stuff.
>> 
>> But does it actually write to the .mitk file? All the implementations i have 
>> seen appear to write to a separate file. Then is this name stored in the 
>> .mitk file.
>> 
>> If thats the case, then presumably the new data-type can be loaded as per 
>> normal given the filename.
>> 
>> But this also means that there is a dependency between a .mitk and a 
>> separate file. Is it possible to keep it all together in one file?
>> 
>> Thanks
>> 
>> Matt
>> 
>> 
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> mitk-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/mitk-users
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> mitk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mitk-users

------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to