osgEarth 2.1.1
Public Member Functions | Public Attributes

anonymous_namespace{OSGTileFactory.cpp}::PopulateStreamingTileDataCallback Struct Reference

Collaboration diagram for anonymous_namespace{OSGTileFactory.cpp}::PopulateStreamingTileDataCallback:

List of all members.

Public Member Functions

 PopulateStreamingTileDataCallback (const MapFrame &mapf)
void operator() (osg::Node *node, osg::NodeVisitor *nv)

Public Attributes

const MapFrame_mapf

Detailed Description

Definition at line 57 of file OSGTileFactory.cpp.


Constructor & Destructor Documentation

anonymous_namespace{OSGTileFactory.cpp}::PopulateStreamingTileDataCallback::PopulateStreamingTileDataCallback ( const MapFrame mapf) [inline]

Definition at line 59 of file OSGTileFactory.cpp.

: _mapf(mapf) { }

Member Function Documentation

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

Definition at line 61 of file OSGTileFactory.cpp.

        {
            if ( nv->getVisitorType() == osg::NodeVisitor::CULL_VISITOR )
            {
                if ( node->asGroup()->getNumChildren() > 0 )
                {
                    StreamingTile* tile = static_cast<StreamingTile*>( node->asGroup()->getChild(0) );
                    tile->servicePendingImageRequests( _mapf, nv->getFrameStamp()->getFrameNumber() );
                }
            }
            traverse( node, nv );
        }

Here is the call graph for this function:


Member Data Documentation

const MapFrame& anonymous_namespace{OSGTileFactory.cpp}::PopulateStreamingTileDataCallback::_mapf

Definition at line 74 of file OSGTileFactory.cpp.


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