...sorry, the last should be: osgViewer::Viewer* viewer = dynamic_cast<osgViewer::CompositeViewer*>(view->getViewerBase());
Mattias On Mon, Nov 18, 2013 at 10:52 AM, Mattias Helsing <[email protected]> wrote: > Hi Nick, > try one of: > > osgViewer::Viewer* viewer = > dynamic_cast<osgViewer::Viewer*>(camera->getView()); > > or > > osgViewer::View* view = dynamic_cast<osgViewer::View*>(camera->getView()); > osgViewer::Viewer* viewer = dynamic_cast<osgViewer::CompositeViewer*>(view); > > ...from top of head :) > Mattias > > On Mon, Nov 18, 2013 at 10:27 AM, Trajce Nikolov NICK > <[email protected]> wrote: >> Hi Community, >> >> I am working with OSG based application that has plug-in based architecture. >> So I wrote plugins that has to deal with the scene, and these are dlls with >> some interface. The only available data structure in the interface is the >> scene root. >> >> Is there a way to get a pointer to the Viewer from the scene? I was hoping >> to find something like >> >> osg::Camera* camera = ... >> camera->getView()->getViewer() but there is nothing like this in the API. >> Any hints? >> >> Thanks a bunch >> >> Nick >> >> -- >> trajce nikolov nick >> >> _______________________________________________ >> osg-users mailing list >> [email protected] >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >> _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

