From 83add79c078b05bbb19a155bd6edcf5c5c83e6f5 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 4 Feb 2006 21:06:48 +0000 Subject: [PATCH] From Chris Hanson, added get methods for size of file request and data to compile lists. --- include/osgDB/DatabasePager | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/osgDB/DatabasePager b/include/osgDB/DatabasePager index 6d6a0e969..a4721bb63 100644 --- a/include/osgDB/DatabasePager +++ b/include/osgDB/DatabasePager @@ -227,6 +227,13 @@ class OSGDB_EXPORT DatabasePager : public osg::NodeVisitor::DatabaseRequestHandl * note, should only be called from the draw thread. * Note, must only be called from a valid graphics context. */ virtual void compileGLObjects(osg::State& state,double& availableTime); + + /** Report how many items are in the _fileRequestList queue */ + unsigned int getFileRequestListSize() const { return _fileRequestList.size(); } + + /** Report how many items are in the _dataToCompileList queue */ + unsigned int getDataToCompileListSize() const { return _dataToCompileList.size(); } + typedef std::list< osg::ref_ptr > PagedLODList; typedef std::set< osg::ref_ptr > StateSetList;