Added setBound() method to Drawable.

This commit is contained in:
Robert Osfield 2003-03-11 21:53:28 +00:00
parent 5ae998dbc2
commit b0dce04063
2 changed files with 8 additions and 0 deletions

View File

@ -384,6 +384,9 @@ class SG_EXPORT Drawable : public Object
implemented by subclasses.*/
virtual bool computeBound() const;
/** set the bounding box .*/
void setBound(const BoundingBox& bb) const;
void addParent(osg::Node* node);
void removeParent(osg::Node* node);

View File

@ -326,3 +326,8 @@ bool Drawable::computeBound() const
return true;
}
void Drawable::setBound(const BoundingBox& bb) const
{
_bbox = bb;
_bbox_computed = true;
}