osgEarth 2.1.1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes

osgEarth::Drivers::WorldWindOptions Class Reference

Inheritance diagram for osgEarth::Drivers::WorldWindOptions:
Collaboration diagram for osgEarth::Drivers::WorldWindOptions:

List of all members.

Public Member Functions

optional< int > & maxLOD ()
const optional< int > & maxLOD () const
optional< std::string > & elevationCachePath ()
const optional< std::string > & elevationCachePath () const
optional< std::string > & elevationURL ()
const optional< std::string > & elevationURL () const
 WorldWindOptions (const TileSourceOptions &opt=TileSourceOptions())
Config getConfig () const

Protected Member Functions

void mergeConfig (const Config &conf)

Private Member Functions

void fromConfig (const Config &conf)

Private Attributes

optional< std::string > _imageURL
optional< std::string > _elevationURL
optional< std::string > _elevationCachePath
optional< int > _maxLOD

Detailed Description

Definition at line 30 of file WorldWindOptions.


Constructor & Destructor Documentation

osgEarth::Drivers::WorldWindOptions::WorldWindOptions ( const TileSourceOptions opt = TileSourceOptions()) [inline]

Definition at line 47 of file WorldWindOptions.

                                                                              : TileSourceOptions( opt ),
            _maxLOD( 11 ),
            _elevationURL( "http://worldwind25.arc.nasa.gov/wwelevation/wwelevation.aspx?T=srtm30pluszip" ),
            _imageURL( "http://s0.tileservice.worldwindcentral.com/getTile?" )
        {
            setDriver( "worldwind" );
            fromConfig( _conf );
        }

Member Function Documentation

optional<std::string>& osgEarth::Drivers::WorldWindOptions::elevationCachePath ( ) [inline]

Definition at line 36 of file WorldWindOptions.

{ return _elevationCachePath; }
const optional<std::string>& osgEarth::Drivers::WorldWindOptions::elevationCachePath ( ) const [inline]

Definition at line 37 of file WorldWindOptions.

{ return _elevationCachePath; }
optional<std::string>& osgEarth::Drivers::WorldWindOptions::elevationURL ( ) [inline]

Definition at line 39 of file WorldWindOptions.

{ return _elevationURL; }
const optional<std::string>& osgEarth::Drivers::WorldWindOptions::elevationURL ( ) const [inline]

Definition at line 40 of file WorldWindOptions.

{ return _elevationURL; }
void osgEarth::Drivers::WorldWindOptions::fromConfig ( const Config conf) [inline, private]

Reimplemented from osgEarth::TileSourceOptions.

Definition at line 73 of file WorldWindOptions.

                                              {
            conf.getIfSet("image_url", _imageURL);
            conf.getIfSet("elevation_url", _elevationURL);
            conf.getIfSet("max_lod", _maxLOD);
            conf.getIfSet("elevation_cache", _elevationCachePath);
            conf.getIfSet("worldwind_cache", _elevationCachePath); // back compat
        }

Here is the call graph for this function:

Config osgEarth::Drivers::WorldWindOptions::getConfig ( ) const [inline, virtual]

Gets or sets the name of the object

Reimplemented from osgEarth::TileSourceOptions.

Definition at line 57 of file WorldWindOptions.

                                 {
            Config conf = TileSourceOptions::getConfig();
            conf.updateIfSet("image_url", _imageURL);
            conf.updateIfSet("elevation_url", _elevationURL);
            conf.updateIfSet("max_lod", _maxLOD);
            conf.updateIfSet("elevation_cache", _elevationCachePath);
            return conf;
        }

Here is the call graph for this function:

optional<int>& osgEarth::Drivers::WorldWindOptions::maxLOD ( ) [inline]

Definition at line 33 of file WorldWindOptions.

{ return _maxLOD; }
const optional<int>& osgEarth::Drivers::WorldWindOptions::maxLOD ( ) const [inline]

Definition at line 34 of file WorldWindOptions.

{ return _maxLOD; }
void osgEarth::Drivers::WorldWindOptions::mergeConfig ( const Config conf) [inline, protected, virtual]

Reimplemented from osgEarth::TileSourceOptions.

Definition at line 67 of file WorldWindOptions.

Here is the call graph for this function:


Member Data Documentation

Definition at line 83 of file WorldWindOptions.

Definition at line 82 of file WorldWindOptions.

Definition at line 81 of file WorldWindOptions.

Definition at line 84 of file WorldWindOptions.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines