Line | |
---|
1 | #pragma once |
---|
2 | |
---|
3 | |
---|
4 | |
---|
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 | |
---|
18 | virtual const char* className() const { return "distortion set loader"; }; |
---|
19 | virtual ReadResult readNode( const std::string& file, const osgDB::ReaderWriter::Options* options) const; |
---|
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; |
---|
23 | |
---|
24 | |
---|
25 | private: |
---|
26 | std::string extensionToAdd; |
---|
27 | |
---|
28 | osg::ref_ptr<osgDB::Options> readOptions; |
---|
29 | osg::ref_ptr<osgDB::Options> writeOptions; |
---|
30 | osg::ref_ptr<osgDB::ReaderWriter> rw; |
---|
31 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.