mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 01:12:11 -05:00
#1135 Compute accumulated length along sim well and added slider
This commit is contained in:
1 parent
758bc96ff5
commit
b13ca8bb1c
12 files changed
+115
-79
No files matched your search
@@ -221,13 +221,11 @@ RiuWellPathSelectionItem::RiuWellPathSelectionItem(const RivWellPathSourceInfo*
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuSimWellSelectionItem::RiuSimWellSelectionItem(const RivSimWellPipeSourceInfo* simwellSourceInfo,
|
||||
size_t i,
|
||||
size_t j,
|
||||
size_t k)
|
||||
: i(i),
|
||||
j(j),
|
||||
k(k)
|
||||
RiuSimWellSelectionItem::RiuSimWellSelectionItem(RimEclipseWell* simwell,
|
||||
cvf::Vec3d m_domainCoord,
|
||||
size_t m_branchIndex)
|
||||
: m_simWell(simwell),
|
||||
m_domainCoord(m_domainCoord),
|
||||
m_branchIndex(m_branchIndex)
|
||||
{
|
||||
m_simWell = simwellSourceInfo->well();
|
||||
}
|
||||
@@ -222,8 +222,7 @@ public:
|
||||
class RiuSimWellSelectionItem : public RiuSelectionItem
|
||||
{
|
||||
public:
|
||||
explicit RiuSimWellSelectionItem(const RivSimWellPipeSourceInfo* simwellSourceInfo,
|
||||
size_t i, size_t j, size_t k);
|
||||
explicit RiuSimWellSelectionItem(RimEclipseWell* simwell, cvf::Vec3d domainCoord, size_t branchIndex);
|
||||
|
||||
|
||||
virtual ~RiuSimWellSelectionItem() {};
|
||||
@@ -234,9 +233,7 @@ public:
|
||||
}
|
||||
|
||||
public:
|
||||
// const RivSimWellPipeSourceInfo* m_simwellSourceInfo;
|
||||
RimEclipseWell* m_simWell;
|
||||
size_t i;
|
||||
size_t j;
|
||||
size_t k;
|
||||
cvf::Vec3d m_domainCoord;
|
||||
size_t m_branchIndex;
|
||||
};
|
||||
@@ -321,23 +321,10 @@ void RiuViewerCommands::displayContextMenu(QMouseEvent* event)
|
||||
|
||||
commandIds << "RicNewSimWellIntersectionFeature";
|
||||
commandIds << "RicShowWellAllocationPlotFeature";
|
||||
size_t gridIndex = cvf::UNDEFINED_SIZE_T;
|
||||
size_t gridCellIndex = cvf::UNDEFINED_SIZE_T;
|
||||
|
||||
eclipseWellSourceInfo->findGridIndexAndCellIndex(firstPartTriangleIndex, &gridIndex, &gridCellIndex);
|
||||
|
||||
if (gridIndex != cvf::UNDEFINED_SIZE_T && gridCellIndex != cvf::UNDEFINED_SIZE_T)
|
||||
{
|
||||
size_t i = 0;
|
||||
size_t j = 0;
|
||||
size_t k = 0;
|
||||
ijkFromCellIndex(gridIndex, gridCellIndex, &i, &j, &k);
|
||||
|
||||
RiuSelectionItem* selItem = new RiuSimWellSelectionItem(eclipseWellSourceInfo, i, j, k);
|
||||
RiuSelectionItem* selItem = new RiuSimWellSelectionItem(eclipseWellSourceInfo->well(), m_currentPickPositionInDomainCoords, eclipseWellSourceInfo->branchIndex());
|
||||
RiuSelectionManager::instance()->setSelectedItem(selItem, RiuSelectionManager::RUI_TEMPORARY);
|
||||
commandIds << "RicNewSimWellFractureAtPosFeature";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user