Changeset 368 for experimental


Ignore:
Timestamp:
May 31, 2012, 10:15:26 PM (12 years ago)
Author:
Torben Dannhauer
Message:
 
Location:
experimental/distortionNG
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • experimental/distortionNG/ReaderWriterDist.cpp

    r367 r368  
    5353ReaderWriterDist::ReadResult ReaderWriterDist::readObject( const std::string& file, const Options* options) const
    5454{
     55        // This function must be reimplemented because the osgb|t|x plugin would test for a valid filename extension and thus would block the fiel due to it's .dist extension.
    5556        ReadResult result = ReadResult::FILE_LOADED;
    5657        std::string fileName = file;
     
    6566ReaderWriterDist::ReadResult ReaderWriterDist::readObject( std::istream& fin, const Options* options ) const
    6667{
     68        // This function uses the osgb|t|x plugin to perform the operation
    6769        if ( rw )
    6870        {
     
    9597ReaderWriterDist::WriteResult ReaderWriterDist::writeObject( const osg::Object& object, const std::string& fileName, const osgDB::ReaderWriter::Options* options ) const
    9698{
     99        // This function must be reimplemented because the osgb|t|x plugin would test for a valid filename extension and thus would block the fiel due to it's .dist extension.
    97100        WriteResult result = WriteResult::FILE_SAVED;
    98101        std::ios::openmode mode = std::ios::out;
     
    110113ReaderWriterDist::WriteResult ReaderWriterDist::writeObject( const osg::Object& object, std::ostream& fout, const osgDB::ReaderWriter::Options* options ) const
    111114{
     115        // This function uses the osgb|t|x plugin to perform the operation
    112116        if ( rw )
    113117        {
  • experimental/distortionNG/ReaderWriterDist.h

    r367 r368  
    2020        Options* prepareReading( ReadResult& result, std::string& fileName, std::ios::openmode& mode, const Options* options ) const;
    2121        Options* prepareWriting( WriteResult& result, const std::string& fileName, std::ios::openmode& mode, const Options* options ) const;
    22         virtual ReadResult readObject( const std::string& file, const osgDB::ReaderWriter::Options* options) const;     // passes the call to the stream function
    23         virtual ReadResult readObject( std::istream& fin, const osgDB::ReaderWriter::Options* options ) const;  // passes the call to the readwriter defined in the ctor
    24     virtual WriteResult writeObject( const osg::Object& object, const std::string& fileName, const osgDB::ReaderWriter::Options* options ) const;       // passes the call to the stream function
    25     virtual WriteResult writeObject( const osg::Object& object, std::ostream& fout, const osgDB::ReaderWriter::Options* options ) const;        // passes the call to the readwriter defined in the ctor
     22        virtual ReadResult readObject( const std::string& file, const osgDB::ReaderWriter::Options* options) const;
     23        virtual ReadResult readObject( std::istream& fin, const osgDB::ReaderWriter::Options* options ) const;
     24    virtual WriteResult writeObject( const osg::Object& object, const std::string& fileName, const osgDB::ReaderWriter::Options* options ) const;
     25    virtual WriteResult writeObject( const osg::Object& object, std::ostream& fout, const osgDB::ReaderWriter::Options* options ) const;
    2626
    2727
Note: See TracChangeset for help on using the changeset viewer.