osgEarth 2.1.1
|
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 |
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); }
osg::Vec4f& osgEarth::Symbology::Fill::color | ( | ) | [inline] |
const osg::Vec4f& osgEarth::Symbology::Fill::color | ( | ) | const [inline] |
Config Fill::getConfig | ( | ) | const [virtual] |
Definition at line 88 of file Symbol.cpp.
{ Config conf("fill"); conf.add("color", vec4fToHtmlColor(_color)); return conf; }
void Fill::mergeConfig | ( | const Config & | conf | ) | [virtual] |
Definition at line 96 of file Symbol.cpp.
{ _color = htmlColorToVec4f(conf.value("color")); }
osg::Vec4f osgEarth::Symbology::Fill::_color [protected] |