Show
Ignore:
Timestamp:
01/27/10 18:09:05 (5 years ago)
Author:
robert
Message:

From Wang Rui, "Changes:

1. Rewrite the reading/writing exception handlers to work like the ive
plugin exceptions.
2. Write a header writing/checking function in ReaderWriterOSG2.cpp,
which may help decide if the stream is ascii or binary. The
readInputIterator() function will return null pointer if the input
file is nither osgb nor osgt format, which indicates that the old .osg
format could be used here, in case we've merged the two plugins
together.
3. Add a new ForceReadingImage? option in the InputStream?, which will
allocate an empty image object with the filename if specifed external
image file is missed. It may be useful for format converting in some
cases.
4. Add new osgParticle wrappers, as well as some modification to the
osgParticle headers, for instance, change isEnabled() to getEnabled().
5. Some fixes to the osg serialization wrappers."

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/osgDB/StreamOperator

    r10988 r11018  
    99{ 
    1010 
    11 class OSGDB_EXPORT OutputIterator 
     11class OSGDB_EXPORT OutputIterator : public osg::Referenced 
    1212{ 
    1313public: 
     
    4545}; 
    4646 
    47 class OSGDB_EXPORT InputIterator 
     47class OSGDB_EXPORT InputIterator : public osg::Referenced 
    4848{ 
    4949public: 
     
    5555    const std::istream* getStream() const { return _in; } 
    5656     
     57    void checkStream() const { if (_in->rdstate()&_in->failbit) _failed = true; } 
    5758    bool isFailed() const { return _failed; } 
     59     
    5860    virtual bool isBinary() const = 0; 
    5961     
     
    8082     
    8183protected: 
    82     void checkStream() const 
    83     { if (_in->rdstate()&_in->failbit) _failed = true; } 
    84      
    8584    std::istream* _in; 
    8685    mutable bool _failed;