osgEarth 2.1.1
|
Public Member Functions | |
TMSCacheOptions (const ConfigOptions &options=ConfigOptions()) | |
optional< bool > & | invertY () |
const optional< bool > & | invertY () const |
virtual Config | getConfig () const |
virtual void | mergeConfig (const Config &conf) |
Private Member Functions | |
void | fromConfig (const Config &conf) |
Private Attributes | |
optional< bool > | _invertY |
Options for a TMS-style disk cache. The cache is stored on disk in a file hierarchy identical to that in the TMS specification: http://wiki.osgeo.org/wiki/Tile_Map_Service_Specification
osgEarth::TMSCacheOptions::TMSCacheOptions | ( | const ConfigOptions & | options = ConfigOptions() | ) | [inline] |
Definition at line 149 of file Caching.
: DiskCacheOptions( options ), _invertY( false ) { setDriver("tms"); fromConfig( _conf ); }
void osgEarth::TMSCacheOptions::fromConfig | ( | const Config & | conf | ) | [inline, private] |
Reimplemented from osgEarth::DiskCacheOptions.
Definition at line 173 of file Caching.
{ conf.getIfSet("invert_y", _invertY); }
virtual Config osgEarth::TMSCacheOptions::getConfig | ( | ) | const [inline, virtual] |
Gets or sets the name of the object
Reimplemented from osgEarth::DiskCacheOptions.
Definition at line 162 of file Caching.
{ Config conf = DiskCacheOptions::getConfig(); conf.updateIfSet("invert_y", _invertY); return conf; }
const optional<bool>& osgEarth::TMSCacheOptions::invertY | ( | ) | const [inline] |
optional<bool>& osgEarth::TMSCacheOptions::invertY | ( | ) | [inline] |
virtual void osgEarth::TMSCacheOptions::mergeConfig | ( | const Config & | conf | ) | [inline, virtual] |
Reimplemented from osgEarth::DiskCacheOptions.
Definition at line 167 of file Caching.
{ DiskCacheOptions::mergeConfig( conf ); fromConfig( conf ); }
optional<bool> osgEarth::TMSCacheOptions::_invertY [private] |