HI Wang Rui, On Wed, Jan 20, 2010 at 8:47 AM, Wang Rui <[email protected]> wrote: > I'll be thinking of this. As you said, to encapsulate everything into > the output/input stream is not flexible. We could have a pair of > BaseOutput/BaseInput pure virtual classes and implement different > operations based on them, not only reading or writing files, maybe > some introspection/reflection work as well.
If we can implement property introspection, getting and setting or properties then we should be implement the range of file formats, as well as open the door to other programming tasks that require introspection. I guess you might want a scheme where you can just get one property at a time, and also where you'd want to pass in a traverser that does the checking and writing out of properties as it descends the graph. I must admit I haven't yet studied your code close enough to understand exactly how it all hangs together. Through today I will hopefully start getting a better understanding. > It's possible to keep only a ReaderWriterOSG2.cpp in the > osgPlugins/osg2 directory, or even merge it with the osg plugin. My gut feeling is that I should try for integrating the OSG2 functionality directly into a the existing ReaderWriterOSG.cpp, refactoring the code base so it makes clear distinction between the old and new codes as well as offering the opportunity for making the old support an optional compile. > The > first thing is to merge osgDB::Registry and osg2/Registry, and move > the Serializer, Compressor and ObjectWrapper sources to osgDB > namespace, so do OutputStream and InputStream, which may require to be > reduced and inheritd by different read/write operation classes. I'm pretty comfortable with the task of integrating the osg2 classes into osgDB. I'll leave any further refactoring them to yourself and others. Once we have the code in svn/trunk it'll give us a bit more exposure and more of a framework to hang everything off going forward. > I'd like to start to do this this weekend, no matter if the new format > wrappers are already merged into the trunk or not. I will pay close > attention to your changes and try to catch up with the latest SVN. So > don't worry about the revision control problem. Fingers cross I'll have the new plugin/wrappers checked in today. > IMHO, Family is the most important thing in life. Best wishes to you > and your family. :) Thanks. My little family is certainly the most important thing in my life, just makes me smile thinking about them. Even coding comes second! Do you have family? Robert. _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
