Added setBound() method to Drawable.
This commit is contained in:
parent
5ae998dbc2
commit
b0dce04063
@ -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);
|
||||
|
||||
|
@ -326,3 +326,8 @@ bool Drawable::computeBound() const
|
||||
return true;
|
||||
}
|
||||
|
||||
void Drawable::setBound(const BoundingBox& bb) const
|
||||
{
|
||||
_bbox = bb;
|
||||
_bbox_computed = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user