Added asSwitch and asGeode convinience methods to Node

This commit is contained in:
Robert Osfield
2008-12-09 09:24:47 +00:00
parent 45160a2129
commit 6b3704ce09
3 changed files with 24 additions and 0 deletions

View File

@@ -38,6 +38,8 @@ class OSG_EXPORT Geode : public Node
META_Node(osg, Geode);
virtual Geode* asGeode() { return this; }
virtual const Geode* asGeode() const { return this; }
/** Add a \c Drawable to the \c Geode.
* If \c drawable is not \c NULL and is not contained in the \c Geode