Rev | Line | |
---|
[365] | 1 | #pragma once |
---|
| 2 | |
---|
[366] | 3 | |
---|
| 4 | |
---|
[365] | 5 | #include <osg/Notify> |
---|
| 6 | #include <osgDB/FileNameUtils> |
---|
| 7 | #include <osgDB/FileUtils> |
---|
| 8 | #include <osgDB/Registry> |
---|
| 9 | #include <osgDB/ReadFile> |
---|
| 10 | |
---|
| 11 | #include "ModificationVisitor.h" |
---|
| 12 | |
---|
| 13 | class ReaderWriterDist : public osgDB::ReaderWriter |
---|
| 14 | { |
---|
| 15 | public: |
---|
| 16 | ReaderWriterDist(); |
---|
| 17 | |
---|
[366] | 18 | virtual const char* className() const { return "distortion set loader"; }; |
---|
[365] | 19 | virtual ReadResult readNode( const std::string& file, const osgDB::ReaderWriter::Options* options) const; |
---|
[366] | 20 | virtual ReadResult readNode( std::istream& fin, const osgDB::ReaderWriter::Options* options ) const; |
---|
| 21 | virtual WriteResult writeNode( const osg::Node& node, const std::string& fileName, const osgDB::ReaderWriter::Options* options ) const; |
---|
| 22 | virtual WriteResult writeNode( const osg::Node& node, std::ostream& fout, const osgDB::ReaderWriter::Options* options ) const; |
---|
[365] | 23 | |
---|
[366] | 24 | |
---|
[365] | 25 | private: |
---|
| 26 | std::string extensionToAdd; |
---|
[366] | 27 | |
---|
| 28 | osg::ref_ptr<osgDB::Options> readOptions; |
---|
| 29 | osg::ref_ptr<osgDB::Options> writeOptions; |
---|
| 30 | osg::ref_ptr<osgDB::ReaderWriter> rw; |
---|
[365] | 31 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.