osgEarth 2.1.1
Public Member Functions | Public Attributes

anonymous_namespace{SkyNode.cpp}::AddCallbackToDrawablesVisitor Struct Reference

List of all members.

Public Member Functions

 AddCallbackToDrawablesVisitor (double radius)
virtual void apply (osg::Geode &node)

Public Attributes

double _radius

Detailed Description

Definition at line 132 of file SkyNode.cpp.


Constructor & Destructor Documentation

anonymous_namespace{SkyNode.cpp}::AddCallbackToDrawablesVisitor::AddCallbackToDrawablesVisitor ( double  radius) [inline]

Definition at line 134 of file SkyNode.cpp.

            : osg::NodeVisitor(osg::NodeVisitor::TRAVERSE_ALL_CHILDREN),
            _radius(radius) {}

Member Function Documentation

virtual void anonymous_namespace{SkyNode.cpp}::AddCallbackToDrawablesVisitor::apply ( osg::Geode &  node) [inline, virtual]

Definition at line 138 of file SkyNode.cpp.

        {
            for (unsigned int i = 0; i < node.getNumDrawables(); i++)
            {
                node.getDrawable(i)->setDrawCallback( new OverrideNearFarValuesCallback(_radius) );

                // Do not use display lists otherwise the callback will only
                // be called once on initial compile.
                node.getDrawable(i)->setUseDisplayList(false);
            }
        }

Member Data Documentation

double anonymous_namespace{SkyNode.cpp}::AddCallbackToDrawablesVisitor::_radius

Definition at line 150 of file SkyNode.cpp.


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