osgEarth 2.1.1
Public Member Functions

KML_LineStyle Struct Reference

Inheritance diagram for KML_LineStyle:
Collaboration diagram for KML_LineStyle:

List of all members.

Public Member Functions

virtual void scan (const Config &conf, Style &style)

Detailed Description

Definition at line 26 of file KML_LineStyle.


Member Function Documentation

void KML_LineStyle::scan ( const Config conf,
Style style 
) [virtual]

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:


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