osgEarth 2.1.1
|
Public Member Functions | |
DiskCacheOptions (const ConfigOptions &options=ConfigOptions()) | |
void | setPath (const std::string &value) |
const std::string & | path () const |
optional< bool > & | writeWorldFiles () |
const optional< bool > & | writeWorldFiles () const |
optional< std::string > & | imageWriterPluginOptions () |
const optional< std::string > & | imageWriterPluginOptions () const |
virtual Config | getConfig () const |
virtual void | mergeConfig (const Config &conf) |
Private Member Functions | |
void | fromConfig (const Config &conf) |
Private Attributes | |
std::string | _path |
optional< bool > | _writeWorldFiles |
optional< std::string > | _imageWriterPluginOptions |
Options class for any cache that caches tiles as individual files on disk.
osgEarth::DiskCacheOptions::DiskCacheOptions | ( | const ConfigOptions & | options = ConfigOptions() | ) | [inline] |
Definition at line 93 of file Caching.
: CacheOptions( options ), _writeWorldFiles( false ), _imageWriterPluginOptions("") { fromConfig( _conf ); }
void osgEarth::DiskCacheOptions::fromConfig | ( | const Config & | conf | ) | [inline, private] |
Reimplemented from osgEarth::CacheOptions.
Reimplemented in osgEarth::TMSCacheOptions.
Definition at line 127 of file Caching.
{ _path = conf.value("path"); conf.getIfSet("write_world_files", _writeWorldFiles); conf.getIfSet("image_writer_plugin_options", _imageWriterPluginOptions); }
virtual Config osgEarth::DiskCacheOptions::getConfig | ( | ) | const [inline, virtual] |
Gets or sets the name of the object
Reimplemented from osgEarth::CacheOptions.
Reimplemented in osgEarth::TMSCacheOptions.
Definition at line 114 of file Caching.
{ Config conf = CacheOptions::getConfig(); conf.update("path", _path); conf.updateIfSet("write_world_files", _writeWorldFiles); conf.updateIfSet("image_writer_plugin_options", _imageWriterPluginOptions); return conf; }
optional<std::string>& osgEarth::DiskCacheOptions::imageWriterPluginOptions | ( | ) | [inline] |
Options string to pass to an osgDB image plugin
Definition at line 110 of file Caching.
{ return _imageWriterPluginOptions; }
const optional<std::string>& osgEarth::DiskCacheOptions::imageWriterPluginOptions | ( | ) | const [inline] |
Definition at line 111 of file Caching.
{ return _imageWriterPluginOptions; }
virtual void osgEarth::DiskCacheOptions::mergeConfig | ( | const Config & | conf | ) | [inline, virtual] |
Reimplemented from osgEarth::CacheOptions.
Reimplemented in osgEarth::TMSCacheOptions.
Definition at line 121 of file Caching.
{ CacheOptions::mergeConfig( conf ); fromConfig( conf ); }
const std::string& osgEarth::DiskCacheOptions::path | ( | ) | const [inline] |
void osgEarth::DiskCacheOptions::setPath | ( | const std::string & | value | ) | [inline] |
const optional<bool>& osgEarth::DiskCacheOptions::writeWorldFiles | ( | ) | const [inline] |
Definition at line 107 of file Caching.
{ return _writeWorldFiles; }
optional<bool>& osgEarth::DiskCacheOptions::writeWorldFiles | ( | ) | [inline] |
Whether to write out "world" files alongside the cached tiles
Definition at line 106 of file Caching.
{ return _writeWorldFiles; }
optional<std::string> osgEarth::DiskCacheOptions::_imageWriterPluginOptions [private] |
std::string osgEarth::DiskCacheOptions::_path [private] |
optional<bool> osgEarth::DiskCacheOptions::_writeWorldFiles [private] |