osgEarth 2.1.1
Public Member Functions

anonymous_namespace{SkyNode.cpp}::DoNotIncludeInNearFarComputationCallback Struct Reference

List of all members.

Public Member Functions

virtual void operator() (osg::Node *node, osg::NodeVisitor *nv)

Detailed Description

Definition at line 57 of file SkyNode.cpp.


Member Function Documentation

virtual void anonymous_namespace{SkyNode.cpp}::DoNotIncludeInNearFarComputationCallback::operator() ( osg::Node *  node,
osg::NodeVisitor *  nv 
) [inline, virtual]

Definition at line 59 of file SkyNode.cpp.

        {
            osgUtil::CullVisitor* cv = dynamic_cast< osgUtil::CullVisitor*>( nv );

            // Default value
            osg::CullSettings::ComputeNearFarMode oldMode;

            if( cv )
            {
                oldMode = cv->getComputeNearFarMode();
                cv->setComputeNearFarMode( osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR );
            }

            traverse(node, nv);

            if( cv )
            {
                cv->setComputeNearFarMode(oldMode);
            }
        }

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines