Replaced dynamic_cast<*Callback> with as*Callback() implementation/usage.
This commit is contained in:
@@ -103,13 +103,6 @@ class OSG_EXPORT Node : public Object
|
||||
* Equivalent to dynamic_cast<const Node*>(this).*/
|
||||
virtual const Node* asNode() const { return this; }
|
||||
|
||||
/** convert 'this' into a Drawable pointer if Node is a Drawable, otherwise return 0.
|
||||
* Equivalent to dynamic_cast<Group*>(this).*/
|
||||
virtual Drawable* asDrawable() { return 0; }
|
||||
/** convert 'const this' into a const Drawable pointer if Node is a Drawable, otherwise return 0.
|
||||
* Equivalent to dynamic_cast<const Group*>(this).*/
|
||||
virtual const Drawable* asDrawable() const { return 0; }
|
||||
|
||||
/** convert 'this' into a Geometry pointer if Node is a Geometry, otherwise return 0.
|
||||
* Equivalent to dynamic_cast<Group*>(this).*/
|
||||
virtual Geometry* asGeometry() { return 0; }
|
||||
|
||||
Reference in New Issue
Block a user