osgEarth 2.1.1
Public Member Functions | Protected Attributes

osgEarth::Symbology::PolygonSymbol Class Reference

Inheritance diagram for osgEarth::Symbology::PolygonSymbol:
Collaboration diagram for osgEarth::Symbology::PolygonSymbol:

List of all members.

Public Member Functions

 PolygonSymbol (const Config &conf=Config())
optional< Fill > & fill ()
const optional< Fill > & fill () const
virtual Config getConfig () const
virtual void mergeConfig (const Config &conf)

Protected Attributes

optional< Fill_fill

Detailed Description

Symbol that describes how to render a polygonal geometry.

Definition at line 34 of file PolygonSymbol.


Constructor & Destructor Documentation

PolygonSymbol::PolygonSymbol ( const Config conf = Config())

Definition at line 60 of file GeometrySymbol.cpp.

                             :
_fill( Fill() )
{
    //nop
}

Member Function Documentation

optional<Fill>& osgEarth::Symbology::PolygonSymbol::fill ( ) [inline]

Polygon fill properties.

Definition at line 40 of file PolygonSymbol.

{ return _fill; }

Here is the caller graph for this function:

const optional<Fill>& osgEarth::Symbology::PolygonSymbol::fill ( ) const [inline]

Definition at line 41 of file PolygonSymbol.

{ return _fill; }
Config PolygonSymbol::getConfig ( ) const [virtual]

Reimplemented from osgEarth::Symbology::Symbol.

Definition at line 32 of file PolygonSymbol.cpp.

{
    Config conf = Symbol::getConfig();
    conf.key() = "polygon";
    conf.addObjIfSet( "fill", _fill );
    return conf;
}

Here is the call graph for this function:

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

Definition at line 41 of file PolygonSymbol.cpp.

{
    conf.getObjIfSet( "fill", _fill );
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 48 of file PolygonSymbol.


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