OpenSceneGraph/include/osgDB
Robert Osfield de040e44a0 From Rafa Gata, I've been playing around with serializers in order to use it as a
"generic" property mechanism for osg::Object.

The main problem I have found is that InputStream and OutputStream
only takes the stream when you call start method, and in that case it
attaches to the stream buffer some stuff, useful for files but not for
runtime/gui usage. I have added a simple setInputIterator and
setOutputIterator to the classes so now you can easily serialize
values without version and other stuff.

Writing matrix:
osgDB::OutputStream os(0);
std::stringstream sstream;
os.setOutputIterator(new AsciiOutputIterator(&sstream));
os << matrix;
std::string value = sstream.str();

Reading matrix:
osgDB::InputStream is(0);
std::stringstream sstream(value);
is.setInputIterator(new AsciiInputIterator(&sstream));
osg::Matrixf mat2;
is >> mat2;

From Robert Osfield, added doxygen comments to clarify the role of the methods.
2011-05-16 08:50:59 +00:00
..
Archive Added following methods to osgDB::Archive in support of work by Fradley Anderegg on .zip archive support: 2011-04-29 16:34:26 +00:00
AuthenticationMap Moved AuthenticalMap/AuthenticationDetails out in their own files 2008-07-17 12:13:04 +00:00
Callbacks Moved ReadFile/WriteFile/FindFile/FileLocationCallbacks from include/osg/Options into their own Callbacks header/source file. 2009-05-11 16:38:40 +00:00
ConvertUTF From Rafa Gaitan and Jorge Izquierdo, build support for Android NDK. 2011-03-08 16:35:37 +00:00
DatabasePager From Tim Moore, 2011-03-30 15:15:07 +00:00
DatabaseRevisions Added append() method 2009-06-19 11:04:48 +00:00
DataTypes Improved the handling of matrices in serialization so that it's more reliable, 2010-10-04 15:23:19 +00:00
DotOsgWrapper Fixed automatic loading of plugins 2010-02-10 16:23:27 +00:00
DynamicLibrary Updated copyright years. 2006-07-18 15:21:48 +00:00
Export From Piotr Gwiazdowski, "So there's config setting OSG_DISABLE_MSVC_WARNINGS which should 2011-03-09 14:15:04 +00:00
ExternalFileWriter From Sukender, new ExternalFileWriter helper class that helps the management of writing out external files to disk 2011-05-12 13:27:14 +00:00
FileCache Implemented updating of revision files as new data is writing to the FileCache 2009-06-04 14:07:12 +00:00
FileNameUtils From Sukender, new ExternalFileWriter helper class that helps the management of writing out external files to disk 2011-05-12 13:27:14 +00:00
FileUtils From Jean-Sebastien Guay, osgDB functions to expand wildcards - required to aid windows consule usage as this doesn't not automatically expand * usage. 2010-11-01 11:06:12 +00:00
fstream Merged in various changes from the OSG-2.8 to being svn/trunk up to date. 2009-02-19 14:24:10 +00:00
ImageOptions Refactored the Registry::ReadFileCallback, WriteFileCallback and ReaderWriter::Options to they are now defined in their own header and in the osgDB namespace. 2009-05-09 08:49:27 +00:00
ImagePager Refactored the Registry::ReadFileCallback, WriteFileCallback and ReaderWriter::Options to they are now defined in their own header and in the osgDB namespace. 2009-05-09 08:49:27 +00:00
ImageProcessor From Per Fahlberg, warning fixes 2011-01-20 12:27:51 +00:00
Input Moved the declaration of osgDB::Field, FieldReader and FieldReaderIterator into include/osg/Input to centralise all the deprecated .osg parsing code into one place. 2010-01-25 15:24:47 +00:00
InputStream From Rafa Gata, I've been playing around with serializers in order to use it as a 2011-05-16 08:50:59 +00:00
ObjectWrapper Refactored the versioning of serializers so it now uses a _firstVersion and _lastVersion make it possible 2010-11-09 13:23:43 +00:00
Options Added copyop parameter to cloneOptions() method 2011-02-14 16:05:33 +00:00
Output Moved the declaration of osgDB::Field, FieldReader and FieldReaderIterator into include/osg/Input to centralise all the deprecated .osg parsing code into one place. 2010-01-25 15:24:47 +00:00
OutputStream From Rafa Gata, I've been playing around with serializers in order to use it as a 2011-05-16 08:50:59 +00:00
ParameterOutput Fixed warnings 2009-01-07 10:32:59 +00:00
PluginQuery Fixed typo of commercial 2010-11-22 11:22:03 +00:00
ReaderWriter From Magnus Kessler, "Attached are a number of files where I have tried to fix up some of the 2010-09-15 12:00:12 +00:00
ReadFile From Chris Hanson, " Remove vestigial (and because it was undocumented, potentially harmful) code to ignore 2009-11-20 14:51:43 +00:00
Registry Added osg::ref_ptr<osgDB::Archive> osgDB::Registry::getRefFromArchiveCache() and osg::ref_ptr<osgDB::Object> osgDB::Registry::getRefFromObjectCache(). 2011-05-06 16:46:13 +00:00
Serializer Fixed build problem 2011-05-06 09:00:46 +00:00
SharedStateManager Form Richard Schmidt, "The following features were added: 2010-12-13 12:16:57 +00:00
StreamOperator From Mathias Froehlich, build fix for Solaris 2011-01-26 16:45:36 +00:00
Version From David Callu, improved consistency of Version strings and add version support 2007-09-05 17:12:24 +00:00
WriteFile Refactored the Registry::ReadFileCallback, WriteFileCallback and ReaderWriter::Options to they are now defined in their own header and in the osgDB namespace. 2009-05-09 08:49:27 +00:00
XmlParser From Wang Rui, "I've fixed the problem that osgx format doesn't read the Font property and wrapped string correctly. The first problem happened because the matchString() made a mistake in comparing two strings with the same start but different size. The second just needs complete rewriting of writeWrappedString() and readWrappedString() in src/osgPlugins/osg/XmlStreamOperator.h 2010-09-30 09:34:41 +00:00