[osg-submissions] Preserving OpenFlight Object record data

Paul Martz pmartz at skew-matrix.com
Tue Mar 11 15:07:32 PDT 2008


Hi Robert -- The attached preserves OpenFlight Object record data as
UserData in the osg::Group corresponding to the Object record.
 
The files are:
    include/osgSim/ObjectRecordData -- The new class. Derives from Object to
support .osg IO.
    src/osgPlugins/OpenFlight/PrimaryRecords.cpp -- Reads data into that
class.
    src/osgPlugins/osgSim/IO_ObjectRecordData.cpp -- .osg IO support.
 
I know we had discussed deriving the new class from osg::Referenced, but I
couldn't see a way to support .osg IO without deriving it from osg::Object.
 
I've tested this with my (under development) FLT exporter and can preserve
the Object record data in round trips between FLT and OSG.
 
Feedback welcome,
 
Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com <http://www.skew-matrix.com/> 
303 859 9466
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080311/3f7b6711/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ObjectRecordData
Type: application/octet-stream
Size: 2495 bytes
Desc: not available
Url : http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080311/3f7b6711/attachment-0001.obj 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: PrimaryRecords.cpp
Url: http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080311/3f7b6711/attachment-0001.pot 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: IO_ObjectRecordData.cpp
Url: http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080311/3f7b6711/attachment-0001.asc 


More information about the osg-submissions mailing list