Hi Everyone,

I was wondering if there is a safe technique for converting between node types. 
 I would like to substitute all PAT nodes with MatrixTransforms, but I can't 
think of any elegant way of ensuring that all data defined in their common base 
(ie. Transform), gets copied in full.  Essentially, I don't care about data 
specific to the PAT, other than the position and attitude, which is very easy 
to translate with special code.

What I want is a way to deep copy all data that they both inherit from their 
common ancestors (descriptions, statesets, reference frame, etc.), then I can 
explicitly translate the info of interest from the PAT to the MatrixTransform.  
I'm sure C++ doesn't have any builtin ways of doing this, but I thought I might 
see if something like this has been added to OSG.

Thanks,
Chase Bradford

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to