Added a s/getState() to osgTerrain::DataSet to allow better integration with applications.

This commit is contained in:
Robert Osfield
2005-11-09 20:24:47 +00:00
parent 4cb43e0f6c
commit 26c911acf3
2 changed files with 9 additions and 5 deletions

View File

@@ -31,6 +31,7 @@
#include <osg/Image>
#include <osg/Shape>
#include <osg/CoordinateSystemNode>
#include <osg/State>
#include <osgDB/Archive>
@@ -1085,7 +1086,8 @@ class OSGTERRAIN_EXPORT DataSet : public osg::Referenced
void _writeNodeFile(const osg::Node& node,const std::string& filename);
void _writeImageFile(const osg::Image& image,const std::string& filename);
void setState(osg::State* state) { _state = state; }
osg::State* getState() { return _state.get(); }
protected:
@@ -1152,6 +1154,8 @@ class OSGTERRAIN_EXPORT DataSet : public osg::Referenced
bool _writeNodeBeforeSimplification;
osg::ref_ptr<osg::Node> _rootNode;
osg::ref_ptr<osg::State> _state;
};