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

osgEarth::Drivers::VPBOptions Class Reference

Inheritance diagram for osgEarth::Drivers::VPBOptions:
Collaboration diagram for osgEarth::Drivers::VPBOptions:

List of all members.

Public Types

enum  DirectoryStructure { DS_NESTED, DS_TASK, DS_FLAT }

Public Member Functions

optional< URI > & url ()
const optional< URI > & url () const
optional< int > & primarySplitLevel ()
const optional< int > & primarySplitLevel () const
optional< int > & secondarySplitLevel ()
const optional< int > & secondarySplitLevel () const
optional< DirectoryStructure > & directoryStructure ()
const optional
< DirectoryStructure > & 
directoryStructure () const
optional< int > & layer ()
const optional< int > & layer () const
optional< std::string > & layerSetName ()
const optional< std::string > & layerSetName () const
optional< int > & numTilesWideAtLod0 ()
const optional< int > & numTilesWideAtLod0 () const
optional< int > & numTilesHighAtLod0 ()
const optional< int > & numTilesHighAtLod0 () const
optional< std::string > & baseName ()
const optional< std::string > & baseName () const
 VPBOptions (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< URI_url
optional< std::string > _baseName
optional< std::string > _layerSetName
optional< int > _primarySplitLevel
optional< int > _secondarySplitLevel
optional< int > _layer
optional< int > _widthLod0
optional< int > _heightLod0
optional< DirectoryStructure_dirStruct

Detailed Description

Definition at line 29 of file VPBOptions.


Member Enumeration Documentation

Enumerator:
DS_NESTED 
DS_TASK 
DS_FLAT 

Definition at line 33 of file VPBOptions.


Constructor & Destructor Documentation

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 );
        }

Member Function Documentation

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;
        }

Here is the call graph for this function:

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;
        }

Here is the call graph for this function:

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.

Here is the call graph for this function:

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.

const optional<int>& osgEarth::Drivers::VPBOptions::secondarySplitLevel ( ) const [inline]

Definition at line 48 of file VPBOptions.

const optional<URI>& osgEarth::Drivers::VPBOptions::url ( ) const [inline]

Definition at line 42 of file VPBOptions.

{ return _url; }
optional<URI>& osgEarth::Drivers::VPBOptions::url ( ) [inline]

Definition at line 41 of file VPBOptions.

{ return _url; }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 124 of file VPBOptions.

Definition at line 126 of file VPBOptions.

Definition at line 125 of file VPBOptions.

Definition at line 125 of file VPBOptions.

Definition at line 124 of file VPBOptions.

Definition at line 125 of file VPBOptions.

Definition at line 125 of file VPBOptions.

Definition at line 123 of file VPBOptions.

Definition at line 125 of file VPBOptions.


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