osgEarth 2.1.1
|
Public Member Functions | |
optional< std::string > & | url () |
const optional< std::string > & | url () const |
optional< double > & | heightOffset () |
const optional< double > & | heightOffset () const |
optional< bool > & | hideClutter () |
const optional< bool > & | hideClutter () const |
FeatureLabelModelOptions (const ConfigOptions &opt=ConfigOptions()) | |
Config | getConfig () const |
Protected Member Functions | |
void | mergeConfig (const Config &conf) |
Private Member Functions | |
void | fromConfig (const Config &conf) |
Private Attributes | |
optional< std::string > | _url |
optional< double > | _heightOffset |
optional< bool > | _hideClutter |
Definition at line 30 of file FeatureLabelModelOptions.
osgEarth::Drivers::FeatureLabelModelOptions::FeatureLabelModelOptions | ( | const ConfigOptions & | opt = ConfigOptions() | ) | [inline] |
Definition at line 43 of file FeatureLabelModelOptions.
: FeatureModelSourceOptions( opt ), _heightOffset( 0.0 ) { setDriver( "feature_label" ); fromConfig( _conf ); }
void osgEarth::Drivers::FeatureLabelModelOptions::fromConfig | ( | const Config & | conf | ) | [inline, private] |
Reimplemented from osgEarth::Features::FeatureModelSourceOptions.
Definition at line 66 of file FeatureLabelModelOptions.
{ conf.getIfSet( "url", _url ); conf.getIfSet( "height_offset", _heightOffset ); conf.getIfSet( "hide_clutter", _hideClutter ); }
Config osgEarth::Drivers::FeatureLabelModelOptions::getConfig | ( | ) | const [inline, virtual] |
Gets or sets the name of the object
Reimplemented from osgEarth::Features::FeatureModelSourceOptions.
Definition at line 51 of file FeatureLabelModelOptions.
{ Config conf = FeatureModelSourceOptions::getConfig(); conf.updateIfSet( "url", _url ); conf.updateIfSet( "height_offset", _heightOffset ); conf.updateIfSet( "hide_clutter", _hideClutter ); return conf; }
const optional<double>& osgEarth::Drivers::FeatureLabelModelOptions::heightOffset | ( | ) | const [inline] |
Definition at line 37 of file FeatureLabelModelOptions.
{ return _heightOffset; }
optional<double>& osgEarth::Drivers::FeatureLabelModelOptions::heightOffset | ( | ) | [inline] |
Definition at line 36 of file FeatureLabelModelOptions.
{ return _heightOffset; }
optional<bool>& osgEarth::Drivers::FeatureLabelModelOptions::hideClutter | ( | ) | [inline] |
Definition at line 39 of file FeatureLabelModelOptions.
{ return _hideClutter; }
const optional<bool>& osgEarth::Drivers::FeatureLabelModelOptions::hideClutter | ( | ) | const [inline] |
Definition at line 40 of file FeatureLabelModelOptions.
{ return _hideClutter; }
void osgEarth::Drivers::FeatureLabelModelOptions::mergeConfig | ( | const Config & | conf | ) | [inline, protected, virtual] |
Reimplemented from osgEarth::Features::FeatureModelSourceOptions.
Definition at line 60 of file FeatureLabelModelOptions.
{ FeatureModelSourceOptions::mergeConfig( conf ); fromConfig( conf ); }
const optional<std::string>& osgEarth::Drivers::FeatureLabelModelOptions::url | ( | ) | const [inline] |
Definition at line 34 of file FeatureLabelModelOptions.
{ return _url; }
optional<std::string>& osgEarth::Drivers::FeatureLabelModelOptions::url | ( | ) | [inline] |
Definition at line 33 of file FeatureLabelModelOptions.
{ return _url; }
optional<double> osgEarth::Drivers::FeatureLabelModelOptions::_heightOffset [private] |
Definition at line 73 of file FeatureLabelModelOptions.
optional<bool> osgEarth::Drivers::FeatureLabelModelOptions::_hideClutter [private] |
Definition at line 74 of file FeatureLabelModelOptions.
optional<std::string> osgEarth::Drivers::FeatureLabelModelOptions::_url [private] |
Definition at line 72 of file FeatureLabelModelOptions.