osgEarth 2.1.1
Public Member Functions | Protected Attributes

osgEarth::Symbology::Fill Class Reference

List of all members.

Public Member Functions

 Fill ()
 Fill (float r, float g, float b, float a)
 Fill (const Config &conf)
osg::Vec4f & color ()
const osg::Vec4f & color () const
virtual Config getConfig () const
virtual void mergeConfig (const Config &conf)

Protected Attributes

osg::Vec4f _color

Detailed Description

Simple drawing parameters for a filled area.

Definition at line 108 of file Symbol.


Constructor & Destructor Documentation

Fill::Fill ( )

Definition at line 47 of file GeometrySymbol.cpp.

           :
_color( 1, 1, 1, 1 )
{
    //nop
}
Fill::Fill ( float  r,
float  g,
float  b,
float  a 
)

Definition at line 41 of file GeometrySymbol.cpp.

                                               :
_color( r, g, b, a )
{
    //nop
}
osgEarth::Symbology::Fill::Fill ( const Config conf) [inline]

Definition at line 113 of file Symbol.

{ mergeConfig(conf); }

Member Function Documentation

osg::Vec4f& osgEarth::Symbology::Fill::color ( ) [inline]

Definition at line 115 of file Symbol.

{ return _color; }
const osg::Vec4f& osgEarth::Symbology::Fill::color ( ) const [inline]

Definition at line 116 of file Symbol.

{ return _color; }
Config Fill::getConfig ( ) const [virtual]

Definition at line 88 of file Symbol.cpp.

{
    Config conf("fill");
    conf.add("color", vec4fToHtmlColor(_color));
    return conf;
}

Here is the call graph for this function:

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

Definition at line 96 of file Symbol.cpp.

{
    _color = htmlColorToVec4f(conf.value("color"));
}

Here is the call graph for this function:


Member Data Documentation

osg::Vec4f osgEarth::Symbology::Fill::_color [protected]

Definition at line 123 of file Symbol.


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