yeah .. I saw it too a bit late. My intellisense was dropping osg::View methods so I totally missed osgViewer::View. Works now. Thanks Mattias
Cheers, Nick On Mon, Nov 18, 2013 at 12:54 PM, Mattias Helsing <helsin...@gmail.com>wrote: > ...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 <helsin...@gmail.com> > 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 > > <trajce.nikolov.n...@gmail.com> 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 > >> osg-users@lists.openscenegraph.org > >> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > >> > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- trajce nikolov nick
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org