osgEarth 2.1.1
|
Public Member Functions | |
virtual void | scan (const Config &conf, Style &style) |
Definition at line 26 of file KML_LineStyle.
Definition at line 22 of file KML_LineStyle.cpp.
{ if ( !conf.empty() ) { LineSymbol* line = style.getOrCreate<LineSymbol>(); if ( conf.hasValue("color") ) { line->stroke()->color() = Color( Stringify() << "#" << conf.value("color"), Color::ABGR ); } if ( conf.hasValue("width") ) { line->stroke()->width() = as<float>( conf.value("width"), 1.0f ); } } }