We See wrote on 2013-01-18: 
> Hi Aurelien, This is really an exiting proposal you made. Do I
> understand right, that the userAttributes-map is not yet existent and
> has to be developed, including serializers? If yes, then maybe
> DefaultUserDataContainer could be used with something like:
> 
> class UserAttribute : public osg::Object
> {
>   std::string _AttrValue;
> }
> 
> to fill in. The name of the object is the key. One little disadvantage
has this
> solution: it is a vector (not a map) and therefore searching by key
will be
> slower, when a lot of elements are in. But I think not a lot of
elements would
> be inside in normal cases...

Doesn't osg::Object::setUserValue<>() and osg::Object::getUserValue()
basically implement the userAttributes-map?

--
Bryan Thrall
Principal Software Engineer
FlightSafety International
[email protected]


_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to