Hi Konstantin,

You could write this even shorter by adding

Code:

, _updatecallback(copyop(rhs._updatecallback.get()))
, _eventCallback(copyop(rhs._eventCallback.get()))



to the initializer list.

@Robert: the copying of callbacks seems to be inconsistent in the OSG.

For example, the StateSet copy constructor:

    _updateCallback = rhs._updateCallback;

StateAttribute:

 _updateCallback(copyop(sa._updateCallback.get())),

Drawable:

_drawableUpdateCallback(drawable._drawableUpdateCallback),

i.e., some classes are using the CopyOp, which allows the user to specify if 
callbacks should be deep or shallow coppied, but some don't.

Now all these callbacks are deriving from osg::Callback it might be best to use 
copyop(callback) consistently. What do you think?[/code]

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=63742#63742





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

Reply via email to