osgEarth 2.1.1
|
Public Member Functions | |
optional< int > & | tileSize () |
const optional< int > & | tileSize () const |
optional< float > & | noDataValue () |
const optional< float > & | noDataValue () const |
optional< float > & | noDataMinValue () |
const optional< float > & | noDataMinValue () const |
optional< float > & | noDataMaxValue () |
const optional< float > & | noDataMaxValue () const |
optional< std::string > & | blacklistFilename () |
const optional< std::string > & | blacklistFilename () const |
optional< ProfileOptions > & | profile () |
const optional< ProfileOptions > & | profile () const |
optional< int > & | L2CacheSize () |
const optional< int > & | L2CacheSize () const |
TileSourceOptions (const ConfigOptions &options=ConfigOptions()) | |
virtual Config | getConfig () const |
Protected Member Functions | |
virtual void | mergeConfig (const Config &conf) |
Private Member Functions | |
void | fromConfig (const Config &conf) |
Private Attributes | |
optional< int > | _tileSize |
optional< float > | _noDataValue |
optional< float > | _noDataMinValue |
optional< float > | _noDataMaxValue |
optional< ProfileOptions > | _profileOptions |
optional< std::string > | _blacklistFilename |
optional< int > | _L2CacheSize |
Configuration options for a tile source driver.
Definition at line 56 of file TileSource.
osgEarth::TileSourceOptions::TileSourceOptions | ( | const ConfigOptions & | options = ConfigOptions() | ) | [inline] |
Definition at line 82 of file TileSource.
: DriverConfigOptions( options ), _tileSize( 256 ), _noDataValue( (float)SHRT_MIN ), _noDataMinValue( -FLT_MAX ), _noDataMaxValue( FLT_MAX ), _L2CacheSize( 16 ) { fromConfig( _conf ); }
optional<std::string>& osgEarth::TileSourceOptions::blacklistFilename | ( | ) | [inline] |
Definition at line 72 of file TileSource.
{ return _blacklistFilename; }
const optional<std::string>& osgEarth::TileSourceOptions::blacklistFilename | ( | ) | const [inline] |
Definition at line 73 of file TileSource.
{ return _blacklistFilename; }
void osgEarth::TileSourceOptions::fromConfig | ( | const Config & | conf | ) | [inline, private] |
Reimplemented from osgEarth::DriverConfigOptions.
Reimplemented in osgEarth::CompositeTileSourceOptions, osgEarth::Drivers::AGGLiteOptions, osgEarth::Drivers::ArcGISOptions, osgEarth::Drivers::DebugOptions, osgEarth::Drivers::GDALOptions, osgEarth::Drivers::MBTilesOptions, osgEarth::Drivers::OSGOptions, osgEarth::Drivers::TileCacheOptions, osgEarth::Drivers::TileServiceOptions, osgEarth::Drivers::TMSOptions, osgEarth::Drivers::VPBOptions, osgEarth::Drivers::WCSOptions, osgEarth::Drivers::WMSOptions, osgEarth::Drivers::WorldWindOptions, osgEarth::Drivers::YahooOptions, and osgEarth::Features::FeatureTileSourceOptions.
Definition at line 114 of file TileSource.
{ conf.getIfSet( "tile_size", _tileSize ); conf.getIfSet( "nodata_value", _noDataValue ); conf.getIfSet( "nodata_min", _noDataMinValue ); conf.getIfSet( "nodata_max", _noDataMaxValue ); conf.getIfSet( "blacklist_filename", _blacklistFilename); //conf.getIfSet( "enable_l2_cache", _enableL2Cache ); conf.getIfSet( "l2_cache_size", _L2CacheSize ); conf.getObjIfSet( "profile", _profileOptions ); // special handling of default tile size: if ( !tileSize().isSet() ) conf.getIfSet( "default_tile_size", _tileSize ); // remove it now so it does not get serialized _conf.remove( "default_tile_size" ); }
virtual Config osgEarth::TileSourceOptions::getConfig | ( | ) | const [inline, virtual] |
Gets or sets the name of the object
Reimplemented from osgEarth::DriverConfigOptions.
Reimplemented in osgEarth::CompositeTileSourceOptions, osgEarth::Drivers::AGGLiteOptions, osgEarth::Drivers::ArcGISOptions, osgEarth::Drivers::DebugOptions, osgEarth::Drivers::GDALOptions, osgEarth::Drivers::MBTilesOptions, osgEarth::Drivers::OSGOptions, osgEarth::Drivers::TileCacheOptions, osgEarth::Drivers::TileServiceOptions, osgEarth::Drivers::TMSOptions, osgEarth::Drivers::VPBOptions, osgEarth::Drivers::WCSOptions, osgEarth::Drivers::WMSOptions, osgEarth::Drivers::WorldWindOptions, osgEarth::Drivers::YahooOptions, and osgEarth::Features::FeatureTileSourceOptions.
Definition at line 94 of file TileSource.
{ Config conf = DriverConfigOptions::getConfig(); conf.updateIfSet( "tile_size", _tileSize ); conf.updateIfSet( "nodata_value", _noDataValue ); conf.updateIfSet( "nodata_min", _noDataMinValue ); conf.updateIfSet( "nodata_max", _noDataMaxValue ); conf.updateIfSet( "blacklist_filename", _blacklistFilename); //conf.updateIfSet( "enable_l2_cache", _enableL2Cache ); conf.updateIfSet( "l2_cache_size", _L2CacheSize ); conf.updateObjIfSet( "profile", _profileOptions ); return conf; }
const optional<int>& osgEarth::TileSourceOptions::L2CacheSize | ( | ) | const [inline] |
Definition at line 79 of file TileSource.
{ return _L2CacheSize; }
optional<int>& osgEarth::TileSourceOptions::L2CacheSize | ( | ) | [inline] |
Definition at line 78 of file TileSource.
{ return _L2CacheSize; }
virtual void osgEarth::TileSourceOptions::mergeConfig | ( | const Config & | conf | ) | [inline, protected, virtual] |
Reimplemented from osgEarth::DriverConfigOptions.
Reimplemented in osgEarth::CompositeTileSourceOptions, osgEarth::Drivers::AGGLiteOptions, osgEarth::Drivers::ArcGISOptions, osgEarth::Drivers::DebugOptions, osgEarth::Drivers::GDALOptions, osgEarth::Drivers::MBTilesOptions, osgEarth::Drivers::OSGOptions, osgEarth::Drivers::TileCacheOptions, osgEarth::Drivers::TileServiceOptions, osgEarth::Drivers::TMSOptions, osgEarth::Drivers::VPBOptions, osgEarth::Drivers::WCSOptions, osgEarth::Drivers::WMSOptions, osgEarth::Drivers::WorldWindOptions, osgEarth::Drivers::YahooOptions, and osgEarth::Features::FeatureTileSourceOptions.
Definition at line 108 of file TileSource.
{ DriverConfigOptions::mergeConfig( conf ); fromConfig( conf ); }
const optional<float>& osgEarth::TileSourceOptions::noDataMaxValue | ( | ) | const [inline] |
Definition at line 70 of file TileSource.
{ return _noDataMaxValue; }
optional<float>& osgEarth::TileSourceOptions::noDataMaxValue | ( | ) | [inline] |
Definition at line 69 of file TileSource.
{ return _noDataMaxValue; }
optional<float>& osgEarth::TileSourceOptions::noDataMinValue | ( | ) | [inline] |
Definition at line 66 of file TileSource.
{ return _noDataMinValue; }
const optional<float>& osgEarth::TileSourceOptions::noDataMinValue | ( | ) | const [inline] |
Definition at line 67 of file TileSource.
{ return _noDataMinValue; }
optional<float>& osgEarth::TileSourceOptions::noDataValue | ( | ) | [inline] |
Definition at line 63 of file TileSource.
{ return _noDataValue; }
const optional<float>& osgEarth::TileSourceOptions::noDataValue | ( | ) | const [inline] |
Definition at line 64 of file TileSource.
{ return _noDataValue; }
optional<ProfileOptions>& osgEarth::TileSourceOptions::profile | ( | ) | [inline] |
Definition at line 75 of file TileSource.
{ return _profileOptions; }
const optional<ProfileOptions>& osgEarth::TileSourceOptions::profile | ( | ) | const [inline] |
Definition at line 76 of file TileSource.
{ return _profileOptions; }
const optional<int>& osgEarth::TileSourceOptions::tileSize | ( | ) | const [inline] |
Definition at line 61 of file TileSource.
{ return _tileSize; }
optional<int>& osgEarth::TileSourceOptions::tileSize | ( | ) | [inline] |
Definition at line 60 of file TileSource.
{ return _tileSize; }
optional<std::string> osgEarth::TileSourceOptions::_blacklistFilename [private] |
Definition at line 134 of file TileSource.
optional<int> osgEarth::TileSourceOptions::_L2CacheSize [private] |
Definition at line 135 of file TileSource.
optional<float> osgEarth::TileSourceOptions::_noDataMaxValue [private] |
Definition at line 132 of file TileSource.
optional<float> osgEarth::TileSourceOptions::_noDataMinValue [private] |
Definition at line 132 of file TileSource.
optional<float> osgEarth::TileSourceOptions::_noDataValue [private] |
Definition at line 132 of file TileSource.
Definition at line 133 of file TileSource.
optional<int> osgEarth::TileSourceOptions::_tileSize [private] |
Definition at line 131 of file TileSource.