Thanks Oren, changes merged and submitted to svn/trunk.

On 4 October 2012 19:05, Oren Fromberg <[email protected]> wrote:
> Attached is an update to ReaderWriterDAE.cpp/h and daeReader.cpp/h that
> implements
>
> osgDB::ReaderWriter::ReadResult
>
> ReaderWriterDAE::readNode (std::istream&, const
> osgDB::ReaderWriter::Options*)
>
> This virtual function had never been implemented in ReaderWriterDAE. I
> implemented this function because the DAE plugin could not load files from
> other ReaderWriter derived objects that use protocol handlers.
>
> I have updated function declarations in the header to have identical
> signatures with the base class declarations that include the default
> parameter.
>
>
> readNode (std::istream&, …) is nearly identical to readNode(const
> std::string &, …) except it uses a new private function to convert the file
> from standard input:
>
> bool daeReader::convert( std::istream& fin )
>
> When this function is called fileURI is the string “from std::istream” to
> make the user aware where the file is coming from. Then instead of calling
>
> _dae->open(fileURI)
>
> we call
>
> _dae->openFromMemory(fileURI, buffer.data())
>
> Where buffer.data() is a pointer to the dae file text in memory.
>
>
> Other changes include private functions to clear caches and to consolidate
> redundant code that appears between the two convert functions.
>
>
> The sources compile and work with the latest revision of r13155. I tested by
> building and opening a sample dae file with osgviewer.
>
>
> Oren Fromberg
>
>
> APX Labs
>
>
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to