osgEarth 2.1.1
|
Public Member Functions | |
AddCallbackToDrawablesVisitor (double radius) | |
virtual void | apply (osg::Geode &node) |
Public Attributes | |
double | _radius |
Definition at line 132 of file SkyNode.cpp.
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) {}
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); } }
double anonymous_namespace{SkyNode.cpp}::AddCallbackToDrawablesVisitor::_radius |
Definition at line 150 of file SkyNode.cpp.