osgEarth 2.1.1
|
Definition at line 29 of file VPBOptions.
Definition at line 33 of file VPBOptions.
osgEarth::Drivers::VPBOptions::VPBOptions | ( | const TileSourceOptions & | opt = TileSourceOptions() | ) | [inline] |
Definition at line 69 of file VPBOptions.
: TileSourceOptions( opt ), _primarySplitLevel( INT_MAX ), _secondarySplitLevel( INT_MAX ), _layer( 0 ), _widthLod0( 1 ), _heightLod0( 1 ), _dirStruct( DS_NESTED ) { setDriver( "vpb" ); fromConfig( _conf ); }
optional<std::string>& osgEarth::Drivers::VPBOptions::baseName | ( | ) | [inline] |
Definition at line 65 of file VPBOptions.
{ return _baseName; }
const optional<std::string>& osgEarth::Drivers::VPBOptions::baseName | ( | ) | const [inline] |
Definition at line 66 of file VPBOptions.
{ return _baseName; }
optional<DirectoryStructure>& osgEarth::Drivers::VPBOptions::directoryStructure | ( | ) | [inline] |
Definition at line 50 of file VPBOptions.
{ return _dirStruct; }
const optional<DirectoryStructure>& osgEarth::Drivers::VPBOptions::directoryStructure | ( | ) | const [inline] |
Definition at line 51 of file VPBOptions.
{ return _dirStruct; }
void osgEarth::Drivers::VPBOptions::fromConfig | ( | const Config & | conf | ) | [inline, private] |
Reimplemented from osgEarth::TileSourceOptions.
Definition at line 107 of file VPBOptions.
{ conf.getIfSet("url", _url); conf.getIfSet("primary_split_level", _primarySplitLevel); conf.getIfSet("secondary_split_level", _secondarySplitLevel); conf.getIfSet("layer", _layer); conf.getIfSet("layer_setname", _layerSetName); conf.getIfSet("numTilesWideAtLod0", _widthLod0 ); conf.getIfSet("numTilesHighAtLod0", _heightLod0 ); conf.getIfSet("base_name", _baseName); std::string ds = conf.value("directory_structure"); if ( ds == "flat" ) _dirStruct = DS_FLAT; else if ( ds == "task" ) _dirStruct = DS_TASK; else if ( ds == "nested" ) _dirStruct = DS_NESTED; }
Config osgEarth::Drivers::VPBOptions::getConfig | ( | ) | const [inline, virtual] |
Gets or sets the name of the object
Reimplemented from osgEarth::TileSourceOptions.
Definition at line 82 of file VPBOptions.
{ Config conf = TileSourceOptions::getConfig(); conf.updateIfSet("url", _url); conf.updateIfSet("primary_split_level", _primarySplitLevel); conf.updateIfSet("secondary_split_level", _secondarySplitLevel); conf.updateIfSet("layer", _layer); conf.updateIfSet("layer_setname", _layerSetName); conf.updateIfSet("num_tiles_wide_at_lod_0", _widthLod0 ); conf.updateIfSet("num_tiles_high_at_lod_0", _heightLod0 ); conf.updateIfSet("base_name", _baseName ); if ( _dirStruct.isSet() ) { if ( _dirStruct == DS_FLAT ) conf.update("directory_structure", "flat"); else if ( _dirStruct == DS_TASK ) conf.update("directory_structure", "task"); else if ( _dirStruct == DS_NESTED ) conf.update("directory_structure", "nested"); } return conf; }
optional<int>& osgEarth::Drivers::VPBOptions::layer | ( | ) | [inline] |
Definition at line 53 of file VPBOptions.
{ return _layer; }
const optional<int>& osgEarth::Drivers::VPBOptions::layer | ( | ) | const [inline] |
Definition at line 54 of file VPBOptions.
{ return _layer; }
optional<std::string>& osgEarth::Drivers::VPBOptions::layerSetName | ( | ) | [inline] |
Definition at line 56 of file VPBOptions.
{ return _layerSetName; }
const optional<std::string>& osgEarth::Drivers::VPBOptions::layerSetName | ( | ) | const [inline] |
Definition at line 57 of file VPBOptions.
{ return _layerSetName; }
void osgEarth::Drivers::VPBOptions::mergeConfig | ( | const Config & | conf | ) | [inline, protected, virtual] |
Reimplemented from osgEarth::TileSourceOptions.
Definition at line 101 of file VPBOptions.
{ TileSourceOptions::mergeConfig( conf ); fromConfig( conf ); }
const optional<int>& osgEarth::Drivers::VPBOptions::numTilesHighAtLod0 | ( | ) | const [inline] |
Definition at line 63 of file VPBOptions.
{ return _heightLod0; }
optional<int>& osgEarth::Drivers::VPBOptions::numTilesHighAtLod0 | ( | ) | [inline] |
Definition at line 62 of file VPBOptions.
{ return _heightLod0; }
const optional<int>& osgEarth::Drivers::VPBOptions::numTilesWideAtLod0 | ( | ) | const [inline] |
Definition at line 60 of file VPBOptions.
{ return _widthLod0; }
optional<int>& osgEarth::Drivers::VPBOptions::numTilesWideAtLod0 | ( | ) | [inline] |
Definition at line 59 of file VPBOptions.
{ return _widthLod0; }
const optional<int>& osgEarth::Drivers::VPBOptions::primarySplitLevel | ( | ) | const [inline] |
Definition at line 45 of file VPBOptions.
{ return _primarySplitLevel; }
optional<int>& osgEarth::Drivers::VPBOptions::primarySplitLevel | ( | ) | [inline] |
Definition at line 44 of file VPBOptions.
{ return _primarySplitLevel; }
optional<int>& osgEarth::Drivers::VPBOptions::secondarySplitLevel | ( | ) | [inline] |
Definition at line 47 of file VPBOptions.
{ return _secondarySplitLevel; }
const optional<int>& osgEarth::Drivers::VPBOptions::secondarySplitLevel | ( | ) | const [inline] |
Definition at line 48 of file VPBOptions.
{ return _secondarySplitLevel; }
Definition at line 42 of file VPBOptions.
{ return _url; }
Definition at line 41 of file VPBOptions.
{ return _url; }
optional<std::string> osgEarth::Drivers::VPBOptions::_baseName [private] |
Definition at line 124 of file VPBOptions.
Definition at line 126 of file VPBOptions.
optional<int> osgEarth::Drivers::VPBOptions::_heightLod0 [private] |
Definition at line 125 of file VPBOptions.
optional<int> osgEarth::Drivers::VPBOptions::_layer [private] |
Definition at line 125 of file VPBOptions.
optional<std::string> osgEarth::Drivers::VPBOptions::_layerSetName [private] |
Definition at line 124 of file VPBOptions.
optional<int> osgEarth::Drivers::VPBOptions::_primarySplitLevel [private] |
Definition at line 125 of file VPBOptions.
optional<int> osgEarth::Drivers::VPBOptions::_secondarySplitLevel [private] |
Definition at line 125 of file VPBOptions.
optional<URI> osgEarth::Drivers::VPBOptions::_url [private] |
Definition at line 123 of file VPBOptions.
optional<int> osgEarth::Drivers::VPBOptions::_widthLod0 [private] |
Definition at line 125 of file VPBOptions.