[osg-submissions] osg::Object::clone
Валерий
Валерий
Fri Jun 6 05:24:48 PDT 2008
Hi, Robert!
I suggest to you to override type of returning value in realizations of
functions osg::Object::clone and osg::Object::cloneType in derived
classes. In this case one will be able to write simply "osg::Transform*
sTrans = sExistentTrans->clone();" instead of "osg::Transform* sTrans =
dynamic_cast<osg::Transform*>(sExistentTrans->clone());".
It is very simple to realize such behavior, three changed files are
attached in archive, changes are based on revision 8416.
Best regards,
Valery
-------------- next part --------------
A non-text attachment was scrubbed...
Name: code.zip
Type: application/zip
Size: 7136 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080606/3c0d2f40/attachment.zip>
More information about the osg-submissions
mailing list