[osg-users] pfObject::getNamedUserDataSlot

Robert Osfield robert.osfield at gmail.com
Mon Nov 23 01:46:58 PST 2015


Hi Tony,

On 22 November 2015 at 23:16, Tony Vasile <minghia at gmail.com> wrote:

> I have looked at ValueObject and was wondering why there is no option to
> save an osg::Object or an osg::Referenced object. Is this an omission or
> intended?
>

I don't know where you got this impression. You can save custom
osg::Object's to .osgb/.osgx,.osgt as long as you provide the serializers -
see the OpenSceneGraph/src/osgWrappers/serializer/*/* for examples.

The serializers for ValueObject can be found in
src/osgWrappers/serializers/osg/ValueObject.cpp.

Classes subclassed from osg::Referenced rather than osg::Object don't
support serialization though as the serialization requires the RTT info
that osg::Object adds.

Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20151123/897fd072/attachment-0003.htm>


More information about the osg-users mailing list