osgEarth 2.1.1
|
Public Member Functions | |
optional< URI > & | url () |
const optional< URI > & | url () const |
optional< std::string > & | tmsType () |
const optional< std::string > & | tmsType () const |
optional< std::string > & | format () |
const optional< std::string > & | format () const |
TMSOptions (const TileSourceOptions &opt=TileSourceOptions()) | |
TMSOptions (const std::string &inUrl) | |
Config | getConfig () const |
Protected Member Functions | |
void | mergeConfig (const Config &conf) |
Private Member Functions | |
void | fromConfig (const Config &conf) |
Private Attributes | |
optional< URI > | _url |
optional< std::string > | _tmsType |
optional< std::string > | _format |
Definition at line 29 of file TMSOptions.
osgEarth::Drivers::TMSOptions::TMSOptions | ( | const TileSourceOptions & | opt = TileSourceOptions() | ) | [inline] |
Definition at line 42 of file TMSOptions.
: TileSourceOptions( opt ) { setDriver( "tms" ); fromConfig( _conf ); }
osgEarth::Drivers::TMSOptions::TMSOptions | ( | const std::string & | inUrl | ) | [inline] |
Definition at line 48 of file TMSOptions.
: TileSourceOptions() { setDriver( "tms" ); fromConfig( _conf ); url() = inUrl; }
optional<std::string>& osgEarth::Drivers::TMSOptions::format | ( | ) | [inline] |
Definition at line 38 of file TMSOptions.
{ return _format; }
const optional<std::string>& osgEarth::Drivers::TMSOptions::format | ( | ) | const [inline] |
Definition at line 39 of file TMSOptions.
{ return _format; }
void osgEarth::Drivers::TMSOptions::fromConfig | ( | const Config & | conf | ) | [inline, private] |
Reimplemented from osgEarth::TileSourceOptions.
Definition at line 71 of file TMSOptions.
{ conf.getIfSet( "url", _url ); conf.getIfSet( "format", _format ); conf.getIfSet( "tms_type", _tmsType ); }
Config osgEarth::Drivers::TMSOptions::getConfig | ( | ) | const [inline, virtual] |
Gets or sets the name of the object
Reimplemented from osgEarth::TileSourceOptions.
Definition at line 56 of file TMSOptions.
{ Config conf = TileSourceOptions::getConfig(); conf.updateIfSet("url", _url); conf.updateIfSet("tms_type", _tmsType); conf.updateIfSet("format", _format); return conf; }
void osgEarth::Drivers::TMSOptions::mergeConfig | ( | const Config & | conf | ) | [inline, protected, virtual] |
Reimplemented from osgEarth::TileSourceOptions.
Definition at line 65 of file TMSOptions.
{ TileSourceOptions::mergeConfig( conf ); fromConfig( conf ); }
const optional<std::string>& osgEarth::Drivers::TMSOptions::tmsType | ( | ) | const [inline] |
Definition at line 36 of file TMSOptions.
{ return _tmsType; }
optional<std::string>& osgEarth::Drivers::TMSOptions::tmsType | ( | ) | [inline] |
Definition at line 35 of file TMSOptions.
{ return _tmsType; }
Definition at line 33 of file TMSOptions.
{ return _url; }
Definition at line 32 of file TMSOptions.
{ return _url; }
optional<std::string> osgEarth::Drivers::TMSOptions::_format [private] |
Definition at line 79 of file TMSOptions.
optional<std::string> osgEarth::Drivers::TMSOptions::_tmsType [private] |
Definition at line 78 of file TMSOptions.
optional<URI> osgEarth::Drivers::TMSOptions::_url [private] |
Definition at line 77 of file TMSOptions.