root/OpenSceneGraph/trunk/src/osgPlugins/Inventor/ReaderWriterIV.h @ 8578

Revision 8578, 0.8 kB (checked in by robert, 6 years ago)

Converted plugins to use the new supportsExtension()/supportsOptions/supportsProtocl() methods
to help enable better querying of supported features

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
RevLine 
[2225]1#ifndef _READERWRITERIV_H_
2#define _READERWRITERIV_H_
3
4#include <osgDB/Registry>
5#include <osgDB/FileNameUtils>
6
7class ReaderWriterIV : public osgDB::ReaderWriter
8{
9    public:
10        ReaderWriterIV();
11       
[3539]12        virtual const char* className() const
[2225]13        {
[7348]14            return "Inventor reader/writer";
[2225]15        }
16       
[7348]17        bool isInventorExtension(const std::string& extension) const
18        {
19            return osgDB::equalCaseInsensitive(extension, "iv") ? true : false;
20        }
21
[2225]22        virtual ReadResult readNode(const std::string& filename,
[3694]23                                    const osgDB::ReaderWriter::Options *) const;
[2225]24
[7348]25        virtual WriteResult writeNode(const osg::Node& node, const std::string& filename,
26                                      const osgDB::ReaderWriter::Options* options = NULL) const;
[2225]27};
28
29#endif
Note: See TracBrowser for help on using the browser.