Re: [osg-users] How to get all visible nodes

2015-09-30 Thread Robert Osfield
HI Artem, Just write a NodeVisitor that has it's traversal mode set to TRAVERSE_ALL_CHILDREN i.e. class FindAllNodes : public osg::NodeVisitor { public: FindAllNodes(): osg::NodeVisitor(osg::NodeVisitor::TRAVERSE_ALL_CHIILDREN) {} void apply(osg::Node& node) {

[osg-users] How to get all visible nodes

2015-09-29 Thread Artem Ivanov
Hi, I'm new to OSG, so I think I have simple question, but I cannot find answer for it. Actually I'm working with osgEarth and have some osgEarth::PlaceNodes on the terrain, some models and so on. So, I have lots of views. For some needs, I need a mechanism which will allow me to get all the vi