Hi Chris, Paul, Ulrich,

I won't dive in to much right now as I have enough other topics
swishing around in my skull to keep me occupied, but a few general
notes.

Description kinda bloat osg::Node already, I would like to reduce this
bloat and stream line the base classes even more ;-)

I would also like generalize UserData but... not use any more than the
present pointer that we already have in place, don't forget we need to
aim for less bloat not more...

All is not lost though... you just have to be a bit more creative :-)

My thought was that you could possibly create a CompositeUserData or
similar class that you attach as the via the present _userData pointer
when you need the extra services such as description, user data
accessed via int/string descriptors etc.  Such as scheme could be
hidden by accessors methods in the base class that only even attach
the full blow CompositeUserData when actual data is attached to the
object.

Since most object in the scene never have any UserData or descriptions
it does feel like an efficient way to reduce bloat whilst offer more
flexible extensions.  Perhaps other data could also be move out the
base classes this way too...

Robert.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to