Re: [osg-users] REGISTER_OBJECT_WRAPPER problems

2010-03-25 Thread Lee Butler
Hi, Thanks very much!! Lee -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=26140#26140 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-u

Re: [osg-users] REGISTER_OBJECT_WRAPPER problems

2010-03-24 Thread Wang Rui
Hi Butler, To make use of serializers, your class requires a namespace, for example, NS::Foo. And then override className() and libraryName(), the META_Object macro would help a lot. To use ADD_STRING_SERIALIZER. Your should have a pair of suitable functions: void setNote(const std::string&); con

[osg-users] REGISTER_OBJECT_WRAPPER problems

2010-03-24 Thread Butler, Lee Mr CIV USA USAMC
I'm trying to use the new serialization support and getting a compile error I don't really understand. For the following code: - class Foo : public osg::Group { public: Foo() {} void setNote(std::string &s) { _