osgEarth 2.1.1
Public Member Functions | Protected Attributes

osgEarth::Symbology::LineSymbol Class Reference

Inheritance diagram for osgEarth::Symbology::LineSymbol:
Collaboration diagram for osgEarth::Symbology::LineSymbol:

List of all members.

Public Member Functions

 LineSymbol (const Config &conf=Config())
optional< Stroke > & stroke ()
const optional< Stroke > & stroke () const
virtual Config getConfig () const
virtual void mergeConfig (const Config &conf)

Protected Attributes

optional< Stroke_stroke

Detailed Description

Symbol that describes how to draw linear geometry.

Definition at line 35 of file LineSymbol.


Constructor & Destructor Documentation

LineSymbol::LineSymbol ( const Config conf = Config())

Definition at line 53 of file GeometrySymbol.cpp.

                       :
_stroke( Stroke() )
{
    //nop
}

Member Function Documentation

Config LineSymbol::getConfig ( ) const [virtual]

Reimplemented from osgEarth::Symbology::Symbol.

Definition at line 32 of file LineSymbol.cpp.

{
    Config conf = Symbol::getConfig();
    conf.key() = "line";
    conf.addObjIfSet("stroke", _stroke);
    return conf;
}

Here is the call graph for this function:

void LineSymbol::mergeConfig ( const Config conf) [virtual]

Definition at line 41 of file LineSymbol.cpp.

{
    conf.getObjIfSet("stroke", _stroke);
}

Here is the call graph for this function:

optional<Stroke>& osgEarth::Symbology::LineSymbol::stroke ( ) [inline]

Line stroking parameters

Definition at line 41 of file LineSymbol.

{ return _stroke; }

Here is the caller graph for this function:

const optional<Stroke>& osgEarth::Symbology::LineSymbol::stroke ( ) const [inline]

Definition at line 42 of file LineSymbol.

{ return _stroke; }

Member Data Documentation

Definition at line 49 of file LineSymbol.


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