osgEarth 2.1.1
Static Public Member Functions

osgEarth::Drivers::KML Class Reference

List of all members.

Static Public Member Functions

static osg::Node * load (const URI &uri, MapNode *mapNode, const KMLOptions &kmlOptions=KMLOptions())

Detailed Description

Definition at line 34 of file KML.


Member Function Documentation

static osg::Node* osgEarth::Drivers::KML::load ( const URI uri,
MapNode mapNode,
const KMLOptions kmlOptions = KMLOptions() 
) [inline, static]

Loads KML from a URI.

Definition at line 40 of file KML.

        {
            if ( !mapNode ) {
                OE_WARN << LC << "MapNode instance required" << std::endl;
                return 0L;
            }
            osg::ref_ptr<osgDB::Options> options = Registry::instance()->cloneOrCreateOptions();
            options->setPluginData( "osgEarth::MapNode", mapNode );
            options->setPluginData( "osgEarth::KMLOptions", (void*)&kmlOptions );

            return uri.readNode( options.get() );
        }

Here is the call graph for this function:

Here is the caller graph for this function:


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