Hm. I see that include/osgSim/ObjectRecordData also appears to not have been checked in. However, the OpenFlight plugin now references it, so that change made it. -Paul
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Paul Martz > Sent: Thursday, March 13, 2008 7:58 AM > To: 'OpenSceneGraph Submissions' > Subject: Re: [osg-submissions] Preserving OpenFlight Object > record data > > Hi Robert -- > > I just updated, and appear to be missing > IO_ObjectRecordData.cpp in the osgSim plugin. However, the > CMakeLists.txt references it, so CMake chokes. > Did you forget to add this file? Please check. > > Thanks, > -Paul > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] > On Behalf Of > > Robert Osfield > > Sent: Thursday, March 13, 2008 7:22 AM > > To: OpenSceneGraph Submissions > > Subject: Re: [osg-submissions] Preserving OpenFlight Object record > > data > > > > Thanks Paul, > > > > I've merged your changes, but changed the OpenFlight reader code so > > that is uses a new bool held in > > Document::get/setReadObjectRecordData() to decide whether > to read and > > assign the object records or not. I've set this to off by > default to > > retain the original functionality, with ReaderWriter::Options for > > enabling it via -O readObjectRecordData . If the > prevailing will of > > OpenFlight users is that this should be on by default then I'd be > > happy to change, in general though I incline toward preserving > > original behaviour hence the settings I've gone for. I've added > > mention of this new variable on the wiki's OpenFlight entry : > > > > http://www.openscenegraph.org/projects/osg/wiki/Support/Knowle > > dgeBase/OpenFlight > > > > Cheers, > > Robert. > > > > On Tue, Mar 11, 2008 at 10:07 PM, Paul Martz > <[EMAIL PROTECTED]> > > wrote: > > > > > > > > > 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 > > > 303 859 9466 > > > > > > _______________________________________________ > > > osg-submissions mailing list > > > [email protected] > > > > > > > > > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscene > > > graph.org > > > > > > > > _______________________________________________ > > osg-submissions mailing list > > [email protected] > > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-o > penscenegraph.org > > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-o penscenegraph.org _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
