osgEarth 2.1.1
|
Public Member Functions | |
MaskLayerOptions (const ConfigOptions &options=ConfigOptions()) | |
MaskLayerOptions (const std::string &name, const MaskSourceOptions &driverOptions=MaskSourceOptions()) | |
optional< std::string > & | name () |
const optional< std::string > & | name () const |
optional< MaskSourceOptions > & | driver () |
const optional < MaskSourceOptions > & | driver () const |
virtual Config | getConfig () const |
virtual void | mergeConfig (const Config &conf) |
Private Member Functions | |
void | fromConfig (const Config &conf) |
void | setDefaults () |
Private Attributes | |
optional< std::string > | _name |
optional< MaskSourceOptions > | _driver |
MaskLayerOptions::MaskLayerOptions | ( | const ConfigOptions & | options = ConfigOptions() | ) |
Definition at line 27 of file MaskLayer.cpp.
: ConfigOptions( options ) { setDefaults(); fromConfig( _conf ); }
MaskLayerOptions::MaskLayerOptions | ( | const std::string & | name, |
const MaskSourceOptions & | driverOptions = MaskSourceOptions() |
||
) |
Definition at line 34 of file MaskLayer.cpp.
: ConfigOptions() { setDefaults(); fromConfig( _conf ); _name = name; _driver = driverOptions; }
optional<MaskSourceOptions>& osgEarth::MaskLayerOptions::driver | ( | ) | [inline] |
const optional<MaskSourceOptions>& osgEarth::MaskLayerOptions::driver | ( | ) | const [inline] |
void MaskLayerOptions::fromConfig | ( | const Config & | conf | ) | [private] |
Definition at line 60 of file MaskLayer.cpp.
Config MaskLayerOptions::getConfig | ( | ) | const [virtual] |
Reimplemented from osgEarth::ConfigOptions.
Definition at line 50 of file MaskLayer.cpp.
{ Config conf = ConfigOptions::getConfig(); conf.updateIfSet( "name", _name ); return conf; }
void MaskLayerOptions::mergeConfig | ( | const Config & | conf | ) | [virtual] |
Reimplemented from osgEarth::ConfigOptions.
Definition at line 66 of file MaskLayer.cpp.
{ ConfigOptions::mergeConfig( conf ); fromConfig( conf ); }
const optional<std::string>& osgEarth::MaskLayerOptions::name | ( | ) | const [inline] |
optional<std::string>& osgEarth::MaskLayerOptions::name | ( | ) | [inline] |
void MaskLayerOptions::setDefaults | ( | ) | [private] |
optional<std::string> osgEarth::MaskLayerOptions::_name [private] |