#1486 Use RiuWellPathSelectionItem to communicate data to feature

This commit is contained in:
Magne Sjaastad 2017-05-16 10:22:10 +02:00
parent d0ab854534
commit f81ef5b2fe

View File

@ -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";
} }
} }