osgEarth 2.1.1
|
Public Member Functions | |
OSGTileSourceFactory () | |
virtual const char * | className () |
virtual ReadResult | readObject (const std::string &file_name, const Options *options) const |
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.
OSGTileSourceFactory::OSGTileSourceFactory | ( | ) | [inline] |
Definition at line 166 of file OSGTileSource.cpp.
{ supportsExtension( "osgearth_osg", "OSG image driver for osgEarth" ); }
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) ); }