本文整理汇总了C++中ossimRefPtr::numPars方法的典型用法代码示例。如果您正苦于以下问题:C++ ossimRefPtr::numPars方法的具体用法?C++ ossimRefPtr::numPars怎么用?C++ ossimRefPtr::numPars使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ossimRefPtr
的用法示例。
在下文中一共展示了ossimRefPtr::numPars方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ossimNotify
bool
ossimObservationSet::addObservation(ossimRefPtr<ossimPointObservation> obs)
{
if (traceDebug())
{
ossimNotify(ossimNotifyLevel_DEBUG)
<<"\n ossimObservationSet::addObservation: "<<obs->ID()<<endl;
}
theObs.push_back(obs);
theNumMeas += obs->numMeas();
// Update image list
for (ossim_uint32 i=0; i<obs->numImages(); ++i)
{
if (traceDebug())
{
ossimNotify(ossimNotifyLevel_DEBUG)<<" i="<<i<<endl;
}
bool found = false;
// Check for image already in list
for (ossim_uint32 j=0; j<theImageFiles.size(); ++j)
{
if (theImageFiles[j] == obs->imageFile(i))
{
found = true;
theImageIndex.push_back(j);
int nAdjPar = obs->numPars(i);
theNumPartials += nAdjPar;
}
}
// If not found yet, add to image list
if (!found)
{
theImageFiles.push_back(obs->imageFile(i));
// Geometry
ossimRefPtr<ossimImageHandler> ih;
ih = ossimImageHandlerRegistry::instance()->open(obs->imageFile(i));
theImageHandlers.push_back(ih);
theImageIndex.push_back(theImageHandlers.size()-1);
// Handle ossimAdjustableParameterInterface
ossimAdjustableParameterInterface* adjParIface =
obs->getImageGeom(i)->getAdjustableParameterInterface();
if (!adjParIface)
{
return false;
}
else
{
if (traceDebug())
{
ossimNotify(ossimNotifyLevel_DEBUG)<<" Found new image... "<<i<<endl;
}
int nAdjPar = adjParIface->getNumberOfAdjustableParameters();
theNumAdjPar += nAdjPar;
theNumPartials += nAdjPar;
theNumAdjParams.push_back(nAdjPar);
}
}
}
if (traceDebug())
{
ossimNotify(ossimNotifyLevel_DEBUG)<<" theNumAdjPar = "<<theNumAdjPar<<endl;
ossimNotify(ossimNotifyLevel_DEBUG)<<" theNumPartials = "<<theNumPartials<<endl;
}
return true;
}