Show
Ignore:
Timestamp:
01/31/10 13:55:29 (3 years ago)
Author:
robert
Message:

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"

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/Inventor/ReaderWriterIV.h

    r8578 r11032  
    99    public: 
    1010        ReaderWriterIV(); 
    11          
     11 
    1212        virtual const char* className() const 
    13         {  
    14             return "Inventor reader/writer";  
     13        { 
     14            return "Inventor reader/writer"; 
    1515        } 
    16          
     16 
    1717        bool isInventorExtension(const std::string& extension) const 
    1818        { 
     
    2020        } 
    2121 
    22         virtual ReadResult readNode(const std::string& filename,  
    23                                     const osgDB::ReaderWriter::Options *) const; 
     22        virtual ReadResult readNode(const std::string& filename, 
     23                                    const osgDB::ReaderWriter::Options*) const; 
     24        virtual ReadResult readNode(std::istream& fin, 
     25                                    const osgDB::ReaderWriter::Options* = NULL) const; 
     26 
    2427 
    2528        virtual WriteResult writeNode(const osg::Node& node, const std::string& filename, 
    2629                                      const osgDB::ReaderWriter::Options* options = NULL) const; 
     30 
     31    protected: 
     32        void initInventor() const; 
     33        ReadResult readNodeFromSoInput(class SoInput&, 
     34                  std::string &fileName, const osgDB::ReaderWriter::Options*) const; 
    2735}; 
    2836 
    2937#endif 
     38