#3268 MSW Fracture Export: Add activeFractures

This commit is contained in:
Magne Sjaastad
2018-09-07 13:24:56 +02:00
parent 8afc30d6f8
commit 7cd6c29c9c
3 changed files with 68 additions and 24 deletions

View File

@@ -125,6 +125,27 @@ std::vector<RimWellPathFracture*> RimWellPathFractureCollection::fractures() con
return m_fractures.childObjects();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
std::vector<RimWellPathFracture*> RimWellPathFractureCollection::activeFractures() const
{
std::vector<RimWellPathFracture*> active;
if (isChecked())
{
for (const auto& f : fractures())
{
if (f->isChecked())
{
active.push_back(f);
}
}
}
return active;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------