osgEarth 2.1.1
|
Public Member Functions | |
virtual void | scan2 (const Config &conf, KMLContext &cx) |
Definition at line 27 of file KML_StyleMap.
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 ); } } } }