#1842 RFT plot. Initial commit. Under construction...

This commit is contained in:
Bjørn Erik Jensen
2017-09-27 12:39:28 +02:00
parent 88902e8f03
commit 70a41709cf
20 changed files with 1888 additions and 1 deletions

View File

@@ -22,6 +22,7 @@
#include "RiaColorTables.h"
#include "RimWellAllocationPlot.h"
#include "RimWellRftPlot.h"
#include "RimWellLogCurve.h"
#include "cafSelectionManager.h"
@@ -86,3 +87,17 @@ RimWellAllocationPlot* RicWellLogPlotCurveFeatureImpl::parentWellAllocationPlot(
return wellAllocationPlot;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RimWellRftPlot* RicWellLogPlotCurveFeatureImpl::parentWellRftPlot()
{
caf::PdmObjectHandle* destinationObject = dynamic_cast<caf::PdmObjectHandle*>(caf::SelectionManager::instance()->selectedItem());
if (!destinationObject) return nullptr;
RimWellRftPlot* wellRftPlot = nullptr;
destinationObject->firstAncestorOrThisOfType(wellRftPlot);
return wellRftPlot;
}