#2552 Simulation well heads for branches in 2d intersection view

This commit is contained in:
Jacob Støren
2018-03-14 17:21:09 +01:00
parent a41ca4688e
commit 4ac0a6354c
5 changed files with 34 additions and 12 deletions

View File

@@ -132,7 +132,7 @@ void RivSimWellPipesPartMgr::buildWellPipeParts(const caf::DisplayCoordTransform
if (!this->viewWithSettings()) return;
m_wellBranches.clear();
m_flattenedBranchWellHeadOffsets.clear();
m_pipeBranchesCLCoords.clear();
std::vector< std::vector <RigWellResultPoint> > pipeBranchesCellIds;
@@ -177,6 +177,8 @@ void RivSimWellPipesPartMgr::buildWellPipeParts(const caf::DisplayCoordTransform
cvfCoords->assign(m_pipeBranchesCLCoords[brIdx]);
flattenedStartOffset.z() = m_pipeBranchesCLCoords[brIdx][0].z();
m_flattenedBranchWellHeadOffsets.push_back(flattenedStartOffset.x());
if (doFlatten)
{
@@ -398,3 +400,11 @@ void RivSimWellPipesPartMgr::updatePipeResultColor(size_t frameIndex)
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
std::vector<double> RivSimWellPipesPartMgr::flattenedBranchWellHeadOffsets()
{
return m_flattenedBranchWellHeadOffsets;
}