Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

OSGMergeGraphOp.cpp File Reference

#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)


Function Documentation

UInt32 countNodes const NodePtr node  ) 
 

Definition at line 97 of file OSGMergeGraphOp.cpp.

References osg::NullFC.

Referenced by osg::MergeGraphOp::traverse().

00098 {
00099     if (node == NullFC)
00100         return 0;
00101 
00102     UInt32 total = 1;
00103     for (UInt32 i = 0; i < node->getNChildren(); ++i)
00104         total += countNodes(node->getChild(i));
00105     return total;
00106 }


Generated on Thu Aug 25 04:12:21 2005 for OpenSG by  doxygen 1.4.3