Added ability to alter the verbosity of the notify messages with the

running of osgTerrain::DataSet via a static s/getNotifyOffset(int) method.
This commit is contained in:
Robert Osfield 2004-10-05 15:08:54 +00:00
parent 68c7a47388
commit 3b8abfa875
3 changed files with 182 additions and 160 deletions

View File

@ -26,7 +26,6 @@ class GraphicsContext {
rs->useBorder(false);
rs->useConfigEventThread(false);
rs->realize();
std::cout<<"Realized window"<<std::endl;
}
virtual ~GraphicsContext()
@ -44,6 +43,9 @@ osg::Node* createEarth()
{
std::string filename = osgDB::findDataFile("Images/land_shallow_topo_2048.jpg");
// make osgTerrain::DataSet quieter..
osgTerrain::DataSet::setNotifyOffset(1);
osg::ref_ptr<osgTerrain::DataSet> dataSet = new osgTerrain::DataSet;
// register the source imagery

View File

@ -991,6 +991,14 @@ class OSGTERRAIN_EXPORT DataSet : public osg::Referenced
const std::string& getCommentString() const { return _comment; }
void setWriteNodeBeforeSimplification(bool flag) { _writeNodeBeforeSimplification = flag; }
bool getWriteNodeBeforeSimplification() const { return _writeNodeBeforeSimplification; }
static void setNotifyOffset(int level);
static int setNotifyOffset();
CompositeDestination* createDestinationGraph(CompositeDestination* parent,
osg::CoordinateSystemNode* cs,
const osg::BoundingBox& extents,
@ -1067,7 +1075,9 @@ class OSGTERRAIN_EXPORT DataSet : public osg::Referenced
bool _decorateWithCoordinateSystemNode;
std::string _comment;
bool _writeNodeBeforeSimplification;
osg::ref_ptr<osg::Node> _rootNode;
};

File diff suppressed because it is too large Load Diff