|
osgEarth 2.1.1
|
Inheritance diagram for KML_LineStyle:
Collaboration diagram for KML_LineStyle: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 );
}
}
}
Here is the call graph for this function:
Here is the caller graph for this function:
1.7.3