Fixed the computation of terrain bounding volume so that it properly accounts for

elevation layers
This commit is contained in:
Robert Osfield
2008-01-17 15:37:35 +00:00
parent ae33e4a459
commit efdc026114
4 changed files with 61 additions and 32 deletions

View File

@@ -160,7 +160,7 @@ class OSGTERRAIN_EXPORT Layer : public osg::Object
/** Get modified count value. */
virtual unsigned int getModifiedCount() const { return 0; }
virtual osg::BoundingSphere computeBound() const;
virtual osg::BoundingSphere computeBound(bool treatAsElevationLayer) const;
protected:
@@ -333,7 +333,7 @@ class OSGTERRAIN_EXPORT ProxyLayer : public Layer
virtual void setModifiedCount(unsigned int value);
virtual unsigned int getModifiedCount() const;
virtual osg::BoundingSphere computeBound() const;
virtual osg::BoundingSphere computeBound(bool treatAsElevationLayer) const;
protected: