[gephex-devel] c++ linktypes
Martin Bayer
martin at gephex.org
Mon Nov 29 00:58:53 CET 2004
[Georg Seidel]:
> ~ * functions for binary serialization which must be implemented
> ~ (with them the core can save the state of the graph)
>
> ~ * maybe make the ascii serialisation optional by moving them
> ~ into an "AsciiSerializableLink" subclass (images and audio
> ~ data maybe wont allow serialization to ascii)
I think a textual representation of all linktypes is necessary. We need
a way to specify the initial value for all link types from the scheme
scripting layer.
The binary serialization can be optional because the ascii serialization
is also a binary one. Datatypes like audio and video should have simple
and small textual representations for reasonable initial values like
e.g. a black image and should provide additional optimized binary
representation methods.
What do you think about a textual encoding scheme as s-expressions? This
allows us a very simple integration in the highlevel scripting layer.
The first element in the list is the type identifier of the unit type
and the other elements of the list represent the value.
Examples:
(color 0.5 0.1 0.4)
(number 3.74)
(position 0.1 0.7)
(string "text")
(image (1 1) ((color 0.0 0.0 0.0)))
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : http://lists.gephex.org/pipermail/gephex-devel/attachments/20041129/40f7e5fe/signature.bin
More information about the gephex-devel
mailing list