本文整理汇总了C++中ossimimagehandlerfactorybase::ImageHandlerList类的典型用法代码示例。如果您正苦于以下问题:C++ ImageHandlerList类的具体用法?C++ ImageHandlerList怎么用?C++ ImageHandlerList使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ImageHandlerList类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: getImageHandlersBySuffix
void ossimOpjReaderFactory::getImageHandlersBySuffix(
ossimImageHandlerFactoryBase::ImageHandlerList& result,
const ossimString& ext)const
{
ossimString testExt = ext.downcase();
if ( (testExt == "jp2") || (testExt == "j2k") )
{
result.push_back( new ossimOpjJp2Reader() );
}
else if( (testExt == "ntf") || (testExt == "nitf") )
{
result.push_back(new ossimOpjNitfReader() );
}
}
示例2: getImageHandlersByMimeType
/**
*
* Will add to the result list and handler that supports the passed in mime type
*
*/
void ossimKakaduReaderFactory::getImageHandlersByMimeType(ossimImageHandlerFactoryBase::ImageHandlerList& result,
const ossimString& mimeType)const
{
ossimString test(mimeType.begin(), mimeType.begin()+6);
if(test == "image/")
{
ossimString mimeTypeTest(mimeType.begin() + 6, mimeType.end());
if(mimeTypeTest == "jp2")
{
result.push_back(new ossimKakaduJp2Reader);
}
else if(mimeTypeTest == "nitf")
{
result.push_back(new ossimKakaduNitfReader);
}
}
}
示例3: getImageHandlersByMimeType
void ossimPngReaderFactory::getImageHandlersByMimeType(ossimImageHandlerFactoryBase::ImageHandlerList& result,
const ossimString& mimeType)const
{
ossimString testExt = mimeType.downcase();
if(testExt == "image/png")
{
result.push_back(new ossimPngReader);
}
}
示例4: getImageHandlersBySuffix
void ossimPngReaderFactory::getImageHandlersBySuffix(ossimImageHandlerFactoryBase::ImageHandlerList& result,
const ossimString& ext)const
{
ossimString testExt = ext.downcase();
if(ext == "png")
{
result.push_back(new ossimPngReader);
}
}
示例5: getImageHandlersBySuffix
void ossimImageHandlerRegistry::getImageHandlersBySuffix(ossimImageHandlerFactoryBase::ImageHandlerList& result,
const ossimString& ext)const
{
vector<ossimImageHandlerFactoryBase*>::const_iterator iter = m_factoryList.begin();
ossimImageHandlerFactoryBase::ImageHandlerList temp;
while(iter != m_factoryList.end())
{
temp.clear();
(*iter)->getImageHandlersBySuffix(temp, ext);
if(!temp.empty())
{
// now append to the end of the typeList.
result.insert(result.end(),
temp.begin(),
temp.end());
}
++iter;
}
}
示例6: getImageHandlersByMimeType
void ossimImageHandlerFactory::getImageHandlersByMimeType(ossimImageHandlerFactoryBase::ImageHandlerList& result, const ossimString& mimeType)const
{
ossimString test(mimeType.begin(), mimeType.begin()+6);
if(test == "image/")
{
ossimString mimeTypeTest(mimeType.begin() + 6, mimeType.end());
getImageHandlersBySuffix(result, mimeTypeTest);
if(mimeTypeTest == "dted")
{
result.push_back(new ossimDtedTileSource);
}
}
}
示例7: getImageHandlersBySuffix
void ossimImageHandlerFactory::getImageHandlersBySuffix(ossimImageHandlerFactoryBase::ImageHandlerList& result, const ossimString& ext)const
{
static const char* M = "ossimImageHandlerFactory::getImageHandlersBySuffix() -- ";
// OVR can be combined with "tif" once we get rid of ossimQuickbirdTiffTileSource
if(traceDebug()) ossimNotify(ossimNotifyLevel_DEBUG)<<M<<"Trying OVR...\n";
ossimString testExt = ext.downcase();
if (testExt == "ovr")
{
result.push_back(new ossimTiffTileSource);
return;
}
if(traceDebug()) ossimNotify(ossimNotifyLevel_DEBUG)<<M<<"Testing TIF or TIFF...\n";
if ( (testExt == "tif") || (testExt == "tiff") )
{
// this must be checked first before the TIFF handler
result.push_back(new ossimQuickbirdTiffTileSource);
result.push_back(new ossimTiffTileSource);
return;
}
if(traceDebug()) ossimNotify(ossimNotifyLevel_DEBUG)<<M<<"Testing NTF or NITF...\n";
if ( (testExt == "ntf") || (testExt == "nitf") )
{
// this must be checked first before the NITF raw handler
result.push_back(new ossimQuickbirdNitfTileSource);
result.push_back(new ossimNitfTileSource);
return;
}
if(traceDebug()) ossimNotify(ossimNotifyLevel_DEBUG)<<M<<"Testing RPF...\n";
if ( (testExt == "rpf"))
{
result.push_back(new ossimRpfCacheTileSource);
result.push_back(new ossimImageCacheTileSource);
return;
}
if(traceDebug()) ossimNotify(ossimNotifyLevel_DEBUG)<<M<<"Testing TOC...\n";
if ( testExt == "toc")
{
result.push_back(new ossimCibCadrgTileSource);
return;
}
if(traceDebug()) ossimNotify(ossimNotifyLevel_DEBUG)<<M<<"Testing JPG or JPEG...\n";
if ( (testExt == "jpg") || (testExt == "jpeg") )
{
result.push_back(new ossimJpegTileSource);
return;
}
if(traceDebug()) ossimNotify(ossimNotifyLevel_DEBUG)<<M<<"Testing DOQ or DOQQ...\n";
if ( (testExt == "doq") || (testExt == "doqq") )
{
result.push_back(new ossimDoqqTileSource);
return;
}
if(traceDebug()) ossimNotify(ossimNotifyLevel_DEBUG)<<M<<"Testing DTn...\n";
ossimString regExpStr = "dt[0-9]";
ossimRegExp regExp(regExpStr);
if(regExp.find(testExt))
{
result.push_back(new ossimDtedTileSource);
return;
}
if(traceDebug()) ossimNotify(ossimNotifyLevel_DEBUG)<<M<<"Testing HGT...\n";
if (testExt == "hgt")
{
result.push_back(new ossimSrtmTileSource);
return;
}
if(traceDebug()) ossimNotify(ossimNotifyLevel_DEBUG)<<M<<"Testing HRI,HSI...\n";
if ( (testExt == "hri") || (testExt == "hsi") )
{
result.push_back(new ossimEnviTileSource);
return;
}
if(traceDebug()) ossimNotify(ossimNotifyLevel_DEBUG)<<M<<"Testing DEM...\n";
if (testExt == "dem")
{
result.push_back(new ossimUsgsDemTileSource);
return;
}
if(traceDebug()) ossimNotify(ossimNotifyLevel_DEBUG)<<M<<"Testing FST...\n";
if (testExt == "fst")
{
result.push_back(new ossimLandsatTileSource);
return;
}
if(traceDebug()) ossimNotify(ossimNotifyLevel_DEBUG)<<M<<"Testing RAS or RAW or General Raster...\n";
if ( (testExt == "ras") || (testExt == "raw") || (testExt == "bil"))
{
result.push_back(new ossimGeneralRasterTileSource);
//.........这里部分代码省略.........