osgEarth 2.1.1
|
Public Member Functions | |
virtual void | scan (const Config &conf, KMLContext &cx) |
void KML_Style::scan | ( | const Config & | conf, |
KMLContext & | cx | ||
) | [virtual] |
Reimplemented from KML_Object.
Definition at line 26 of file KML_Style.cpp.
{ Style style( conf.value("id") ); KML_IconStyle icon; icon.scan( conf.child("iconstyle"), style ); KML_LabelStyle label; label.scan( conf.child("labelstyle"), style ); KML_LineStyle line; line.scan( conf.child("linestyle"), style ); KML_PolyStyle poly; poly.scan( conf.child("polystyle"), style ); cx._sheet->addStyle( style ); cx._activeStyle = style; }