|
osgEarth 2.1.1
|
Inheritance diagram for osgEarth::Drivers::OSGOptions:
Collaboration diagram for osgEarth::Drivers::OSGOptions: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 |
Definition at line 29 of file OSGOptions.
| 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 );
}
| 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.
{
TileSourceOptions::mergeConfig( conf );
fromConfig( conf );
}
Here is the call graph for this function:Definition at line 33 of file OSGOptions.
{ return _url; }
Definition at line 32 of file OSGOptions.
{ return _url; }
optional<bool> osgEarth::Drivers::OSGOptions::_addAlpha [private] |
Definition at line 75 of file OSGOptions.
optional<bool> osgEarth::Drivers::OSGOptions::_lum2rgba [private] |
Definition at line 74 of file OSGOptions.
optional<URI> osgEarth::Drivers::OSGOptions::_url [private] |
Definition at line 73 of file OSGOptions.
1.7.3