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

osgEarth::Drivers::DebugOptions Class Reference

Inheritance diagram for osgEarth::Drivers::DebugOptions:
Collaboration diagram for osgEarth::Drivers::DebugOptions:

List of all members.

Public Member Functions

optional< std::string > & colorCode ()
const optional< std::string > & colorCode () const
optional< bool > & tms ()
const optional< bool > & tms () const
 DebugOptions (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 > _colorCode
optional< bool > _tms

Detailed Description

Definition at line 29 of file DebugOptions.


Constructor & Destructor Documentation

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

Definition at line 39 of file DebugOptions.

                                                                          : TileSourceOptions( opt ),
            _colorCode( "#000000" ),
            _tms( false )
        {
            setDriver( "debug" );
            fromConfig( _conf );
        }

Member Function Documentation

optional<std::string>& osgEarth::Drivers::DebugOptions::colorCode ( ) [inline]

Definition at line 32 of file DebugOptions.

{ return _colorCode; }
const optional<std::string>& osgEarth::Drivers::DebugOptions::colorCode ( ) const [inline]

Definition at line 33 of file DebugOptions.

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

Reimplemented from osgEarth::TileSourceOptions.

Definition at line 62 of file DebugOptions.

                                              {
            conf.getIfSet( "color", _colorCode );
            conf.getIfSet( "tms", _tms);
        }

Here is the call graph for this function:

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

Gets or sets the name of the object

Reimplemented from osgEarth::TileSourceOptions.

Definition at line 48 of file DebugOptions.

                                 {
            Config conf = TileSourceOptions::getConfig();
            conf.updateIfSet( "color", _colorCode );
            conf.updateIfSet( "tms", _tms );
            return conf;
        }

Here is the call graph for this function:

void osgEarth::Drivers::DebugOptions::mergeConfig ( const Config conf) [inline, protected, virtual]

Reimplemented from osgEarth::TileSourceOptions.

Definition at line 56 of file DebugOptions.

Here is the call graph for this function:

optional<bool>& osgEarth::Drivers::DebugOptions::tms ( ) [inline]

Definition at line 35 of file DebugOptions.

{ return _tms; }
const optional<bool>& osgEarth::Drivers::DebugOptions::tms ( ) const [inline]

Definition at line 36 of file DebugOptions.

{ return _tms; }

Member Data Documentation

Definition at line 67 of file DebugOptions.

Definition at line 68 of file DebugOptions.


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