#1190 Make sure well log features are disabled for well allocation objects

This commit is contained in:
Magne Sjaastad
2017-02-07 09:34:11 +01:00
parent b8e838614c
commit 4313409c57
8 changed files with 46 additions and 2 deletions

View File

@@ -19,6 +19,7 @@
#include "RicWellLogPlotCurveFeatureImpl.h"
#include "RimWellAllocationPlot.h"
#include "RimWellLogCurve.h"
#include "cafSelectionManager.h"
@@ -92,3 +93,17 @@ std::vector<RimWellLogCurve*> RicWellLogPlotCurveFeatureImpl::selectedWellLogCur
return allCurves;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RimWellAllocationPlot* RicWellLogPlotCurveFeatureImpl::parentWellAllocationPlot()
{
caf::PdmObjectHandle* destinationObject = dynamic_cast<caf::PdmObjectHandle*>(caf::SelectionManager::instance()->selectedItem());
if (!destinationObject) return nullptr;
RimWellAllocationPlot* wellAllocationPlot = nullptr;
destinationObject->firstAncestorOrThisOfType(wellAllocationPlot);
return wellAllocationPlot;
}