|
osgEarth 2.1.1
|
Inheritance diagram for osgEarth::CompositeTileSourceOptions:
Collaboration diagram for osgEarth::CompositeTileSourceOptions:Classes | |
| struct | Component |
Public Member Functions | |
| CompositeTileSourceOptions (const TileSourceOptions &options=TileSourceOptions()) | |
| void | add (const TileSourceOptions &options) |
| void | add (TileSource *source) |
| void | add (const ImageLayerOptions &options) |
| void | add (TileSource *source, const ImageLayerOptions &options) |
| virtual Config | getConfig () const |
Protected Member Functions | |
| virtual void | mergeConfig (const Config &conf) |
Private Types | |
| typedef std::vector< Component > | ComponentVector |
Private Member Functions | |
| void | fromConfig (const Config &conf) |
Private Attributes | |
| ComponentVector | _components |
Friends | |
| class | CompositeTileSource |
Use this class to configure a CompositeTileSource.
Definition at line 31 of file CompositeTileSource.
typedef std::vector<Component> osgEarth::CompositeTileSourceOptions::ComponentVector [private] |
Definition at line 63 of file CompositeTileSource.
| CompositeTileSourceOptions::CompositeTileSourceOptions | ( | const TileSourceOptions & | options = TileSourceOptions() | ) |
Definition at line 29 of file CompositeTileSource.cpp.
: TileSourceOptions( options ) { setDriver( "composite" ); fromConfig( _conf ); }
Here is the call graph for this function:| void CompositeTileSourceOptions::add | ( | const TileSourceOptions & | options | ) |
Add a tile source by using its configuration options
Definition at line 37 of file CompositeTileSource.cpp.
{
Component c;
c._tileSourceOptions = options;
_components.push_back( c );
}
Here is the caller graph for this function:| void CompositeTileSourceOptions::add | ( | TileSource * | source | ) |
Add an existing TileSource instance (note: not serializable)
Definition at line 45 of file CompositeTileSource.cpp.
{
Component c;
c._tileSourceInstance = source;
_components.push_back( c );
}
| void CompositeTileSourceOptions::add | ( | TileSource * | source, |
| const ImageLayerOptions & | options | ||
| ) |
Add a component consisting of a TileSource instance and an imagelayer configuration. (not serializable)
Definition at line 61 of file CompositeTileSource.cpp.
{
Component c;
c._tileSourceInstance = source;
c._imageLayerOptions = options;
_components.push_back( c );
}
| void CompositeTileSourceOptions::add | ( | const ImageLayerOptions & | options | ) |
Add a component described by an image layer configuration.
Definition at line 53 of file CompositeTileSource.cpp.
{
Component c;
c._imageLayerOptions = options;
_components.push_back( c );
}
| void CompositeTileSourceOptions::fromConfig | ( | const Config & | conf | ) | [private] |
Reimplemented from osgEarth::TileSourceOptions.
Definition at line 93 of file CompositeTileSource.cpp.
{
const ConfigSet& children = conf.children("image");
for( ConfigSet::const_iterator i = children.begin(); i != children.end(); ++i )
{
add( ImageLayerOptions( *i ) );
}
if (conf.children("elevation").size() > 0 || conf.children("heightfield").size() > 0 ||
conf.children("model").size() > 0 || conf.children("overlay").size() > 0 )
{
OE_WARN << LC << "Illegal - composite driver only supports image layers" << std::endl;
}
}
Here is the call graph for this function:
Here is the caller graph for this function:| Config CompositeTileSourceOptions::getConfig | ( | ) | const [virtual] |
Gets or sets the name of the object
Reimplemented from osgEarth::TileSourceOptions.
Definition at line 70 of file CompositeTileSource.cpp.
{
Config conf = TileSourceOptions::getConfig();
for( ComponentVector::const_iterator i = _components.begin(); i != _components.end(); ++i )
{
if ( i->_imageLayerOptions.isSet() )
conf.add( "image", i->_imageLayerOptions->getConfig() );
else if ( i->_tileSourceOptions.isSet() )
conf.add( "image", i->_tileSourceOptions->getConfig() );
}
return conf;
}
Here is the call graph for this function:| void CompositeTileSourceOptions::mergeConfig | ( | const Config & | conf | ) | [protected, virtual] |
Reimplemented from osgEarth::TileSourceOptions.
Definition at line 86 of file CompositeTileSource.cpp.
{
TileSourceOptions::mergeConfig( conf );
fromConfig( conf );
}
Here is the call graph for this function:friend class CompositeTileSource [friend] |
Definition at line 66 of file CompositeTileSource.
Definition at line 64 of file CompositeTileSource.
1.7.3