MCPcopy Create free account
hub / github.com/Kitware/TeleSculptor / removePoint

Method removePoint

gui/GroundControlPointsModel.cxx:401–416  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

399
400//-----------------------------------------------------------------------------
401void GroundControlPointsModel::removePoint(id_t id)
402{
403 QTE_D();
404
405 auto const begin = d->points.begin();
406 auto const end = d->points.end();
407
408 auto const i = std::lower_bound(begin, end, id);
409 if (i != end)
410 {
411 auto const r = static_cast<int>(i - begin);
412 this->beginRemoveRows({}, r, r);
413 d->points.erase(i);
414 this->endRemoveRows();
415 }
416}
417
418//-----------------------------------------------------------------------------
419void GroundControlPointsModel::modifyPoint(id_t id)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected