osgEarth 2.1.1
|
Public Member Functions | |
WMSSourceFactory () | |
virtual const char * | className () |
virtual bool | acceptsExtension (const std::string &extension) const |
virtual ReadResult | readObject (const std::string &file_name, const Options *opt) const |
Definition at line 515 of file ReaderWriterWMS.cpp.
WMSSourceFactory::WMSSourceFactory | ( | ) | [inline] |
Definition at line 518 of file ReaderWriterWMS.cpp.
{}
virtual bool WMSSourceFactory::acceptsExtension | ( | const std::string & | extension | ) | const [inline, virtual] |
Definition at line 525 of file ReaderWriterWMS.cpp.
{ return osgDB::equalCaseInsensitive( extension, "osgearth_wms" ); }
virtual const char* WMSSourceFactory::className | ( | ) | [inline, virtual] |
Definition at line 520 of file ReaderWriterWMS.cpp.
{ return "WMS Reader"; }
virtual ReadResult WMSSourceFactory::readObject | ( | const std::string & | file_name, |
const Options * | opt | ||
) | const [inline, virtual] |
Definition at line 530 of file ReaderWriterWMS.cpp.
{ std::string ext = osgDB::getFileExtension( file_name ); if ( !acceptsExtension( ext ) ) { return ReadResult::FILE_NOT_HANDLED; } return new WMSSource( getTileSourceOptions(opt) ); }