osgEarth 2.1.1
|
Public Member Functions | |
ReaderWriterWorldWind () | |
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 320 of file ReaderWriterWorldWind.cpp.
ReaderWriterWorldWind::ReaderWriterWorldWind | ( | ) | [inline] |
Definition at line 323 of file ReaderWriterWorldWind.cpp.
{}
virtual bool ReaderWriterWorldWind::acceptsExtension | ( | const std::string & | extension | ) | const [inline, virtual] |
Definition at line 330 of file ReaderWriterWorldWind.cpp.
{ return osgDB::equalCaseInsensitive( extension, "osgearth_WorldWind" ); }
virtual const char* ReaderWriterWorldWind::className | ( | ) | [inline, virtual] |
Definition at line 325 of file ReaderWriterWorldWind.cpp.
{ return "WorldWind Reader"; }
virtual ReadResult ReaderWriterWorldWind::readObject | ( | const std::string & | file_name, |
const Options * | opt | ||
) | const [inline, virtual] |
Definition at line 335 of file ReaderWriterWorldWind.cpp.
{ std::string ext = osgDB::getFileExtension( file_name ); if ( !acceptsExtension( ext ) ) { return ReadResult::FILE_NOT_HANDLED; } return new WorldWindSource( getTileSourceOptions(opt) ); }