[osg-users] pfObject::getNamedUserDataSlot
Tony Vasile
minghia at gmail.com
Mon Nov 23 14:58:16 PST 2015
Hi Robert,
We are trying to save classes which have more than simple types or the list specified in ValueObject. If we try and save an object which has osg::Object has its parent then you get a linker error about missing apply routines for SetValueVisitor and GetValueVisitor. I have worked around this by using addUserObject and setUserObject. I thought it would have been cleaner if we could use a string to token to identified the stored data rather than a magic number. The magic number approach is similar to Performer.
------------------------
Tony V
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=65755#65755
More information about the osg-users
mailing list