MCPcopy Create free account
hub / github.com/DOI-USGS/ISIS3 / foreach

Function foreach

isis/src/control/objs/ControlNetFilter/ControlNetFilter.cpp:111–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109 QList< ControlMeasure * > measures = mCNet->GetMeasuresInCube(serialNum);
110
111 foreach(ControlMeasure * measure, measures) {
112 bool pointEditFlag = false;
113 QString ptId(measure->Parent()->GetId());
114 ControlPoint * point = mCNet->GetPoint(ptId);
115 if (point->IsEditLocked()) {
116 point->SetEditLock(false);
117 pointEditFlag = true;
118 }
119 ControlMeasure *msr = point->GetMeasure(serialNum);
120 msr->SetEditLock(false);
121 point->Delete(serialNum);
122 if (pointEditFlag) {
123 point->SetEditLock(true);
124 }
125 }
126 }
127
128 /**

Callers

nothing calls this directly

Calls 7

GetIdMethod · 0.80
GetPointMethod · 0.80
GetMeasureMethod · 0.80
ParentMethod · 0.45
IsEditLockedMethod · 0.45
SetEditLockMethod · 0.45
DeleteMethod · 0.45

Tested by

no test coverage detected