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

@@ -33,6 +33,10 @@ class OSG_EXPORT Switch : public Group
/** Copy constructor using CopyOp to manage deep vs shallow copy. */
Switch(const Switch&,const CopyOp& copyop=CopyOp::SHALLOW_COPY);
virtual Switch* asSwitch() { return this; }
virtual const Switch* asSwitch() const { return this; }
META_Node(osg, Switch);
virtual void traverse(NodeVisitor& nv);