osgEarth 2.1.1
Public Member Functions

OSGTileSourceFactory Class Reference

Inheritance diagram for OSGTileSourceFactory:
Collaboration diagram for OSGTileSourceFactory:

List of all members.

Public Member Functions

 OSGTileSourceFactory ()
virtual const char * className ()
virtual ReadResult readObject (const std::string &file_name, const Options *options) const

Detailed Description

This driver defers loading of the source data to the appropriate OSG plugin. You must explicity set an override profile when using this driver.

For example, use this driver to load a simple jpeg file; then set the profile to tell osgEarth its projection.

Definition at line 163 of file OSGTileSource.cpp.


Constructor & Destructor Documentation

OSGTileSourceFactory::OSGTileSourceFactory ( ) [inline]

Definition at line 166 of file OSGTileSource.cpp.

    {
        supportsExtension( "osgearth_osg", "OSG image driver for osgEarth" );
    }

Member Function Documentation

virtual const char* OSGTileSourceFactory::className ( ) [inline, virtual]

Definition at line 171 of file OSGTileSource.cpp.

    {
        return "OSG Image Driver";
    }
virtual ReadResult OSGTileSourceFactory::readObject ( const std::string &  file_name,
const Options *  options 
) const [inline, virtual]

Definition at line 176 of file OSGTileSource.cpp.

    {
        if ( !acceptsExtension(osgDB::getLowerCaseFileExtension( file_name )))
            return ReadResult::FILE_NOT_HANDLED;

        return new OSGTileSource( getTileSourceOptions(options) );
    }

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