osgEarth 2.1.1
|
Public Member Functions | |
optional< int > & | maxLOD () |
const optional< int > & | maxLOD () const |
optional< std::string > & | elevationCachePath () |
const optional< std::string > & | elevationCachePath () const |
optional< std::string > & | elevationURL () |
const optional< std::string > & | elevationURL () const |
WorldWindOptions (const TileSourceOptions &opt=TileSourceOptions()) | |
Config | getConfig () const |
Protected Member Functions | |
void | mergeConfig (const Config &conf) |
Private Member Functions | |
void | fromConfig (const Config &conf) |
Private Attributes | |
optional< std::string > | _imageURL |
optional< std::string > | _elevationURL |
optional< std::string > | _elevationCachePath |
optional< int > | _maxLOD |
Definition at line 30 of file WorldWindOptions.
osgEarth::Drivers::WorldWindOptions::WorldWindOptions | ( | const TileSourceOptions & | opt = TileSourceOptions() | ) | [inline] |
Definition at line 47 of file WorldWindOptions.
: TileSourceOptions( opt ), _maxLOD( 11 ), _elevationURL( "http://worldwind25.arc.nasa.gov/wwelevation/wwelevation.aspx?T=srtm30pluszip" ), _imageURL( "http://s0.tileservice.worldwindcentral.com/getTile?" ) { setDriver( "worldwind" ); fromConfig( _conf ); }
optional<std::string>& osgEarth::Drivers::WorldWindOptions::elevationCachePath | ( | ) | [inline] |
Definition at line 36 of file WorldWindOptions.
{ return _elevationCachePath; }
const optional<std::string>& osgEarth::Drivers::WorldWindOptions::elevationCachePath | ( | ) | const [inline] |
Definition at line 37 of file WorldWindOptions.
{ return _elevationCachePath; }
optional<std::string>& osgEarth::Drivers::WorldWindOptions::elevationURL | ( | ) | [inline] |
Definition at line 39 of file WorldWindOptions.
{ return _elevationURL; }
const optional<std::string>& osgEarth::Drivers::WorldWindOptions::elevationURL | ( | ) | const [inline] |
Definition at line 40 of file WorldWindOptions.
{ return _elevationURL; }
void osgEarth::Drivers::WorldWindOptions::fromConfig | ( | const Config & | conf | ) | [inline, private] |
Reimplemented from osgEarth::TileSourceOptions.
Definition at line 73 of file WorldWindOptions.
{ conf.getIfSet("image_url", _imageURL); conf.getIfSet("elevation_url", _elevationURL); conf.getIfSet("max_lod", _maxLOD); conf.getIfSet("elevation_cache", _elevationCachePath); conf.getIfSet("worldwind_cache", _elevationCachePath); // back compat }
Config osgEarth::Drivers::WorldWindOptions::getConfig | ( | ) | const [inline, virtual] |
Gets or sets the name of the object
Reimplemented from osgEarth::TileSourceOptions.
Definition at line 57 of file WorldWindOptions.
{ Config conf = TileSourceOptions::getConfig(); conf.updateIfSet("image_url", _imageURL); conf.updateIfSet("elevation_url", _elevationURL); conf.updateIfSet("max_lod", _maxLOD); conf.updateIfSet("elevation_cache", _elevationCachePath); return conf; }
optional<int>& osgEarth::Drivers::WorldWindOptions::maxLOD | ( | ) | [inline] |
Definition at line 33 of file WorldWindOptions.
{ return _maxLOD; }
const optional<int>& osgEarth::Drivers::WorldWindOptions::maxLOD | ( | ) | const [inline] |
Definition at line 34 of file WorldWindOptions.
{ return _maxLOD; }
void osgEarth::Drivers::WorldWindOptions::mergeConfig | ( | const Config & | conf | ) | [inline, protected, virtual] |
Reimplemented from osgEarth::TileSourceOptions.
Definition at line 67 of file WorldWindOptions.
{ TileSourceOptions::mergeConfig( conf ); fromConfig( conf ); }
optional<std::string> osgEarth::Drivers::WorldWindOptions::_elevationCachePath [private] |
Definition at line 83 of file WorldWindOptions.
optional<std::string> osgEarth::Drivers::WorldWindOptions::_elevationURL [private] |
Definition at line 82 of file WorldWindOptions.
optional<std::string> osgEarth::Drivers::WorldWindOptions::_imageURL [private] |
Definition at line 81 of file WorldWindOptions.
optional<int> osgEarth::Drivers::WorldWindOptions::_maxLOD [private] |
Definition at line 84 of file WorldWindOptions.