Converted plugins to use the new supportsExtension()/supportsOptions/supportsProtocl() methods

to help enable better querying of supported features
This commit is contained in:
Robert Osfield
2008-07-13 22:18:59 +00:00
parent cb98cddc31
commit 02b456bcfa
54 changed files with 421 additions and 323 deletions

View File

@@ -247,15 +247,15 @@ template <class T>
class ReaderWriterPNM : public osgDB::ReaderWriter
{
public:
virtual const char* className() const { return "PNM Image Reader/Writer"; }
virtual bool acceptsExtension(const std::string& extension) const
ReaderWriterPNM()
{
return osgDB::equalCaseInsensitive(extension, "pnm") ||
osgDB::equalCaseInsensitive(extension, "ppm") ||
osgDB::equalCaseInsensitive(extension, "pgm") ||
osgDB::equalCaseInsensitive(extension, "pbm");
supportsExtension("pnm","PNM Image format");
supportsExtension("ppm","PNM Image format");
supportsExtension("pgm","PNM Image format");
supportsExtension("pbm","PNM Image format");
}
virtual const char* className() const { return "PNM Image Reader/Writer"; }
virtual ReadResult readImage(const std::string& file, const osgDB::ReaderWriter::Options* options) const
{