split requiresUpdateSceneGraph() into requires update and requires redraw (wip)

This commit is contained in:
Philippe Renon
2016-07-04 23:19:20 +02:00
parent e23a30652d
commit 22d53357d3
6 changed files with 28 additions and 7 deletions

View File

@@ -244,6 +244,9 @@ class OSGDB_EXPORT DatabasePager : public osg::NodeVisitor::DatabaseRequestHandl
* Note, must only be called from single thread update phase. */
virtual void updateSceneGraph(const osg::FrameStamp& frameStamp);
/** Return true if there are ... . */
bool requiresRedraw() const;
/** Report how many items are in the _fileRequestList queue */
unsigned int getFileRequestListSize() const { return static_cast<unsigned int>(_fileRequestQueue->size() + _httpRequestQueue->size()); }

View File

@@ -49,6 +49,7 @@ class OSGVIEWER_EXPORT Scene : public osg::Referenced
virtual void updateSceneGraph(osg::NodeVisitor& updateVisitor);
virtual bool requiresRedraw() const;
/** Get the Scene object that has the specified node assigned to it.
* return 0 if no Scene has yet been assigned the specified node.*/