Files
OpenSceneGraph/src/osgPlugins/Inventor/ReaderWriterIV.h
Robert Osfield b2270e7f38 From Jan Peciva, "I am sending improved version of Inventor plugin. Attaching just
modified files, while GroupSoLOD.h and .cpp was deleted. Please, delete
it from repository, it is not used any longer and I doubt if it is
probably not used for anything meaningful for a while. In the new code,
there is no GroupSoLOD. Please, delete it.

I am using new plugin version for about 1.5 month so I consider it
stable by myself.

List of changes:
- rewritten Inventor state stack
- shaders support
- light attenuation support
- support for reading from stream (readNode(std::istream& fin, options))
- improved grouping node handling (SoSeparator, SoGroup,...)
- fixed transformation bug when two SoShapes/Drawables with different transformations are placed bellow one grouping node
- introduced preprocessing to handle more advanced usage schemes of SoLOD and SoSwitch nodes
- unused code clean up
- improved notify messages
- animation callbacks fixes
- FindInventor.cmake improved finding routines, support for Coin3 and Coin4"
2010-01-31 12:55:29 +00:00

39 lines
1.1 KiB
C++

#ifndef _READERWRITERIV_H_
#define _READERWRITERIV_H_
#include <osgDB/Registry>
#include <osgDB/FileNameUtils>
class ReaderWriterIV : public osgDB::ReaderWriter
{
public:
ReaderWriterIV();
virtual const char* className() const
{
return "Inventor reader/writer";
}
bool isInventorExtension(const std::string& extension) const
{
return osgDB::equalCaseInsensitive(extension, "iv") ? true : false;
}
virtual ReadResult readNode(const std::string& filename,
const osgDB::ReaderWriter::Options*) const;
virtual ReadResult readNode(std::istream& fin,
const osgDB::ReaderWriter::Options* = NULL) const;
virtual WriteResult writeNode(const osg::Node& node, const std::string& filename,
const osgDB::ReaderWriter::Options* options = NULL) const;
protected:
void initInventor() const;
ReadResult readNodeFromSoInput(class SoInput&,
std::string &fileName, const osgDB::ReaderWriter::Options*) const;
};
#endif