[osg-users] dynamic_cast equivalent in osgDotNet

Michael Wittman wittman at acm.org
Thu Oct 4 19:53:38 PDT 2007

On Thu, Oct 04, 2007 at 08:56:55AM +0100, Robert Osfield wrote:
> osgGA knows about core osg wher osg::View is defined, so could this work?

Yes, actually that would work well in this case as it would
provide a pointer to an object in the leftmost inheritance branch of
osgViewer::Viewer.  The output from the wrapped function would be of
static type Osg.View and dynamic type OsgViewer.Viewer, so it could be
downcasted without a problem.

If you're comfortable with that change, please do go ahead and make it.
It would definitely be helpful to osgDotNet users as a workaround.


More information about the osg-users mailing list