mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
#1486 Use RiuWellPathSelectionItem to communicate data to feature
This commit is contained in:
@@ -293,12 +293,18 @@ void RiuViewerCommands::displayContextMenu(QMouseEvent* event)
|
|||||||
RimWellPath* wellPath = wellPathSourceInfo->wellPath();
|
RimWellPath* wellPath = wellPathSourceInfo->wellPath();
|
||||||
if (wellPath)
|
if (wellPath)
|
||||||
{
|
{
|
||||||
|
double measuredDepth = wellPathSourceInfo->measuredDepth(firstPartTriangleIndex, m_currentPickPositionInDomainCoords);
|
||||||
|
cvf::Vec3d trueVerticalDepth = wellPathSourceInfo->trueVerticalDepth(firstPartTriangleIndex, globalIntersectionPoint);
|
||||||
|
RiuSelectionItem* selItem = new RiuWellPathSelectionItem(wellPathSourceInfo, trueVerticalDepth, measuredDepth);
|
||||||
|
RiuSelectionManager::instance()->setSelectedItem(selItem, RiuSelectionManager::RUI_TEMPORARY);
|
||||||
|
|
||||||
caf::SelectionManager::instance()->setSelectedItem(wellPath);
|
caf::SelectionManager::instance()->setSelectedItem(wellPath);
|
||||||
|
|
||||||
commandIds << "RicNewWellLogCurveExtractionFeature";
|
commandIds << "RicNewWellLogCurveExtractionFeature";
|
||||||
commandIds << "RicNewWellLogFileCurveFeature";
|
commandIds << "RicNewWellLogFileCurveFeature";
|
||||||
commandIds << "Separator";
|
commandIds << "Separator";
|
||||||
commandIds << "RicNewWellPathIntersectionFeature";
|
commandIds << "RicNewWellPathIntersectionFeature";
|
||||||
|
commandIds << "RicNewFishbonesSubsAtMeasuredDepthFeature";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user