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

osgEarth::Drivers::OSGOptions Class Reference

Inheritance diagram for osgEarth::Drivers::OSGOptions:
Collaboration diagram for osgEarth::Drivers::OSGOptions:

List of all members.

Public Member Functions

optional< URI > & url ()
const optional< URI > & url () const
optional< bool > & convertLuminanceToRGBA ()
const optional< bool > & convertLuminanceToRGBA () const
optional< bool > & addAlpha ()
const optional< bool > & addAlpha () const
 OSGOptions (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< bool > _lum2rgba
optional< bool > _addAlpha

Detailed Description

Definition at line 29 of file OSGOptions.


Constructor & Destructor Documentation

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

Definition at line 42 of file OSGOptions.

                                                                        :
            TileSourceOptions( opt ),
            _lum2rgba( false ),
            _addAlpha( false )
        {
            setDriver( "osg" );
            fromConfig( _conf );
        }

Member Function Documentation

optional<bool>& osgEarth::Drivers::OSGOptions::addAlpha ( ) [inline]

Definition at line 38 of file OSGOptions.

{ return _addAlpha; }
const optional<bool>& osgEarth::Drivers::OSGOptions::addAlpha ( ) const [inline]

Definition at line 39 of file OSGOptions.

{ return _addAlpha; }
optional<bool>& osgEarth::Drivers::OSGOptions::convertLuminanceToRGBA ( ) [inline]

Definition at line 35 of file OSGOptions.

{ return _lum2rgba; }
const optional<bool>& osgEarth::Drivers::OSGOptions::convertLuminanceToRGBA ( ) const [inline]

Definition at line 36 of file OSGOptions.

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

Reimplemented from osgEarth::TileSourceOptions.

Definition at line 67 of file OSGOptions.

                                              {
            conf.getIfSet( "url", _url );
            conf.getIfSet( "luminance_to_rgba", _lum2rgba );
            conf.getIfSet("add_alpha", _addAlpha);
        }

Here is the call graph for this function:

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

Gets or sets the name of the object

Reimplemented from osgEarth::TileSourceOptions.

Definition at line 52 of file OSGOptions.

                                 {
            Config conf = TileSourceOptions::getConfig();
            conf.updateIfSet("url", _url );
            conf.updateIfSet("luminance_to_rgba", _lum2rgba);
            conf.updateIfSet("add_alpha", _addAlpha);
            return conf;
        }

Here is the call graph for this function:

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

Reimplemented from osgEarth::TileSourceOptions.

Definition at line 61 of file OSGOptions.

Here is the call graph for this function:

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

Definition at line 33 of file OSGOptions.

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

Definition at line 32 of file OSGOptions.

{ return _url; }

Member Data Documentation

Definition at line 75 of file OSGOptions.

Definition at line 74 of file OSGOptions.

Definition at line 73 of file OSGOptions.


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