本文整理汇总了C++中ossimRefPtr::getEntryList方法的典型用法代码示例。如果您正苦于以下问题:C++ ossimRefPtr::getEntryList方法的具体用法?C++ ossimRefPtr::getEntryList怎么用?C++ ossimRefPtr::getEntryList使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ossimRefPtr
的用法示例。
在下文中一共展示了ossimRefPtr::getEntryList方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: createHistogram
void ossimImageUtil::createHistogram(ossimRefPtr<ossimImageHandler>& ih)
{
static const char M[] = "ossimImageUtil::createHistogram #1";
if(traceDebug())
{
ossimNotify(ossimNotifyLevel_DEBUG) << M << " entered...\n";
}
if ( ih.valid() )
{
// Get the entry list:
std::vector<ossim_uint32> entryList;
ih->getEntryList(entryList);
bool useEntryIndex = false;
if ( entryList.size() )
{
if ( (entryList.size() > 1) || (entryList[0] != 0) ) useEntryIndex = true;
}
for(ossim_uint32 idx = 0; idx < entryList.size(); ++idx)
{
createHistogram(ih, entryList[idx], useEntryIndex);
}
}
if(traceDebug())
{
ossimNotify(ossimNotifyLevel_DEBUG) << M << " exited...\n";
}
}
示例2: createOverview
// Create overview for image:
void ossimImageUtil::createOverview(ossimRefPtr<ossimImageHandler>& ih,
bool& consumedHistogramOptions,
bool& /* consumedCmmOptions */)
{
static const char M[] = "ossimImageUtil::createOverview #1";
if(traceDebug())
{
ossimNotify(ossimNotifyLevel_DEBUG) << M << " entered...\n";
}
if ( ih.valid() )
{
// Get the entry list:
std::vector<ossim_uint32> entryList;
ih->getEntryList(entryList);
bool useEntryIndex = false;
if ( entryList.size() )
{
if ( (entryList.size() > 1) || (entryList[0] != 0) ) useEntryIndex = true;
}
// Create the overview builder:
ossimString overviewType;
getOverviewType( overviewType.string() );
ossimRefPtr<ossimOverviewBuilderBase> ob =
ossimOverviewBuilderFactoryRegistry::instance()->createBuilder(overviewType);
if ( ob.valid() )
{
// Set up any overview builder options that don't involve histograms.
ossimPropertyInterface* pi = dynamic_cast<ossimPropertyInterface*>( ob.get() );
if ( pi ) setProps(pi);
ossim_uint32 stopDimension = getOverviewStopDimension();
if ( stopDimension ) ob->setOverviewStopDimension(stopDimension);
ob->setScanForMinMax( scanForMinMax() );
ob->setScanForMinMaxNull( scanForMinMaxNull() );
for(ossim_uint32 idx = 0; idx < entryList.size(); ++idx)
{
createOverview(ih, ob, entryList[idx], useEntryIndex, consumedHistogramOptions);
}
}
else
{
ossimNotify(ossimNotifyLevel_WARN)
<< "ERROR:\nCould not create builder for: "<< overviewType << std::endl;
outputOverviewWriterTypes();
}
}
if(traceDebug())
{
ossimNotify(ossimNotifyLevel_DEBUG) << M << " exited...\n";
}
}