#include <OSGMergeGraphOp.h>#include <OSGDirectionalLight.h>#include <OSGSpotLight.h>#include <OSGLight.h>#include <OSGPointLight.h>#include <OSGSwitch.h>#include <OSGDistanceLOD.h>#include <OSGBillboard.h>#include <OSGMaterialGroup.h>#include <OSGComponentTransform.h>#include <OSGPrimitiveIterator.h>#include <OSGGeometry.h>#include <OSGGeoFunctions.h>Go to the source code of this file.
Namespaces | |
| namespace | osg |
Functions | |
| UInt32 | countNodes (const NodePtr &node) |
| UInt32 countNodes | ( | const NodePtr & | node | ) |
Definition at line 102 of file OSGMergeGraphOp.cpp.
References osg::NullFC.
Referenced by osg::MergeGraphOp::traverse().
00103 { 00104 if (node == NullFC) 00105 return 0; 00106 00107 UInt32 total = 1; 00108 for (UInt32 i = 0; i < node->getNChildren(); ++i) 00109 total += countNodes(node->getChild(i)); 00110 return total; 00111 }
1.5.5