osgEarth 2.1.1
Public Member Functions

osgEarth::Features::FeatureRasterizerFactory Class Reference

List of all members.

Public Member Functions

FeatureRasterizercreate (const std::string &driver, const Config &driverConf, const osgDB::ReaderWriter::Options *globalOptions=NULL)

Detailed Description

Definition at line 38 of file FeatureRasterizer.


Member Function Documentation

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:


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