本文整理汇总了C++中ControlPoint::SetRefMeasure方法的典型用法代码示例。如果您正苦于以下问题:C++ ControlPoint::SetRefMeasure方法的具体用法?C++ ControlPoint::SetRefMeasure怎么用?C++ ControlPoint::SetRefMeasure使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ControlPoint
的用法示例。
在下文中一共展示了ControlPoint::SetRefMeasure方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: FindCnetRef
//.........这里部分代码省略.........
else {
if (!bPntEditLock && !bRefLocked) {
newMsr->SetType(ControlMeasure::Candidate);
newMsr->SetIgnored(false);
mdResVector.push_back(mdResolution);
}
}
} // Ignore == false
else {
pvlMeasureGrp += Isis::PvlKeyword("Ignored", "Originally Ignored");
iNumIgnore++;
}
if (newMsr != origPnt.GetMeasure(measure)) {
iMeasuresModified++;
}
//newPnt.UpdateMeasure(newMsr); // Redesign fixed this
pvlGrpVector.push_back(pvlMeasureGrp);
}// end Measure
if ((newPnt->GetNumMeasures() - iNumIgnore) < 2) {
if (bPntEditLock) {
pvlPointObj += Isis::PvlKeyword("UnIgnored", "Good Measures less than 2 but not Ignored as Point EditLock is True");
}
else {
newPnt->SetIgnored(true);
pvlPointObj += Isis::PvlKeyword("Ignored", "Good Measures less than 2");
}
}
// Set the Reference if the Point is unlocked and Reference measure is unlocked
if (!newPnt->IsIgnored() && !bPntEditLock && !bRefLocked) {
iBestIndex = GetReferenceByResolution(newPnt);
if (iBestIndex >= 0 && !newPnt->GetMeasure(iBestIndex)->IsIgnored()) {
newPnt->SetRefMeasure(iBestIndex);
//newPnt.UpdateMeasure(cm); // Redesign fixed this
pvlGrpVector[iBestIndex] += Isis::PvlKeyword("Reference", "true");
}
else {
if (iBestIndex < 0 && meType == Range) {
pvlPointObj += Isis::PvlKeyword("NOTE", "No Valid Measures within the Resolution Range. Reference defaulted to the first Measure");
}
iBestIndex = 0;
newPnt->SetRefMeasure(iBestIndex);
//newPnt.UpdateMeasure(cm); // Redesign fixed this
// Log info, if Point not locked, apriori source == Reference and a new reference
if (iRefIndex != iBestIndex &&
newPnt->GetAprioriSurfacePointSource() == ControlPoint::SurfacePointSource::Reference) {
pvlGrpVector[iBestIndex] += Isis::PvlKeyword("AprioriSource", "Reference is the source and has changed");
}
}
}
for (int i = 0; i < newPnt->GetNumMeasures(); i++) {
pvlPointObj += pvlGrpVector[i];
}
} // end Free
else {
int iComment = 0;
if (numMeasures == 0) {
QString sComment = "Comment";
sComment += QString(++iComment);
pvlPointObj += Isis::PvlKeyword(sComment, "No Measures in the Point");
}
if (newPnt->IsIgnored()) {