osgEarth 2.1.1
Public Member Functions

KML_StyleMap Struct Reference

Inheritance diagram for KML_StyleMap:
Collaboration diagram for KML_StyleMap:

List of all members.

Public Member Functions

virtual void scan2 (const Config &conf, KMLContext &cx)

Detailed Description

Definition at line 27 of file KML_StyleMap.


Member Function Documentation

void KML_StyleMap::scan2 ( const Config conf,
KMLContext cx 
) [virtual]

Reimplemented from KML_Object.

Definition at line 22 of file KML_StyleMap.cpp.

{
    const Config& pair = conf.child("pair");
    if ( !pair.empty() )
    {
        const std::string& url = pair.value("styleurl" );
        if ( !url.empty() )
        {
            const Style* style = cx._sheet->getStyle( url );
            if ( style )
            {
                Style aliasStyle = *style;
                aliasStyle.setName( conf.value("id") );
                cx._sheet->addStyle( aliasStyle );
            }
        }
    }
}

Here is the call graph for this function:


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