<div dir="ltr"><div><div><div><div><div>HI Artem,<br><br></div>Just write a NodeVisitor that has it's traversal mode set to TRAVERSE_ALL_CHILDREN i.e.<br><br></div>class FindAllNodes : public osg::NodeVisitor<br>{<br></div>public:<br> FindAllNodes(): osg::NodeVisitor(osg::NodeVisitor::TRAVERSE_ALL_CHIILDREN) {}<br> <br></div> void apply(osg::Node& node)<br> {<br></div><div> std::cout<<"Visiting node "<<&node<<std::endl;<br></div> traverse(node);<br><div> }<br>};<br><div><br>...<br><br></div><div>FindAllNodes findAllNodes;<br></div><div>viewer.getSceneData()->accept(findAllnodes));<br><br><br></div><div>Robert.<br></div><div><br><br>..<br><br></div><div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 29 September 2015 at 14:52, Artem Ivanov <span dir="ltr"><<a href="mailto:tema.krukovets@gmail.com" target="_blank">tema.krukovets@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'm new to OSG, so I think I have simple question, but I cannot find answer for it.<br>
Actually I'm working with osgEarth and have some osgEarth::PlaceNodes on the terrain, some models and so on.<br>
So, I have lots of views.<br>
<br>
For some needs, I need a mechanism which will allow me to get all the views inside a screen<br>
(I mean which are visible to me at the moment and which are inside my screen).<br>
I didn't find any information about the way I can implement this.<br>
<br>
I'm sure that I've missed something.<br>
I would appreciate any help with this.<br>
<br>
Thank you!<br>
<br>
Cheers,<br>
Artem<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=65244#65244" rel="noreferrer" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=65244#65244</a><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div><br></div>