|
osgEarth 2.1.1
|
Public Member Functions | |
| FeatureRasterizer * | create (const std::string &driver, const Config &driverConf, const osgDB::ReaderWriter::Options *globalOptions=NULL) |
Definition at line 38 of file FeatureRasterizer.
| FeatureRasterizer * FeatureRasterizerFactory::create | ( | const std::string & | driver, |
| const Config & | driverConf, | ||
| const osgDB::ReaderWriter::Options * | globalOptions = NULL |
||
| ) |
Definition at line 33 of file FeatureRasterizer.cpp.
{
osg::ref_ptr<PluginOptions> pluginOptions = globalOptions?
new PluginOptions( *globalOptions ) :
new PluginOptions();
// Setup the plugin options for the source
pluginOptions->config() = driverConf;
//Load the source from the a plugin. The "." prefix causes OSG to select the correct plugin.
//For instance, the WMS plugin can be loaded by using ".osgearth_wms" as the filename
osg::ref_ptr<FeatureRasterizer> rasterizer = dynamic_cast<FeatureRasterizer*>(
osgDB::readObjectFile( ".osgearth_rasterizer_" + driver, pluginOptions.get()));
if ( !rasterizer.valid() )
{
osg::notify(osg::NOTICE) << "[osgEarth] Warning: Could not load Rasterizer for driver " << driver << std::endl;
}
return rasterizer.release();
}
Here is the call graph for this function:
1.7.3