#2581 3D well log curves: Create 3D curve object on a well path

This commit is contained in:
Rebecca Cox
2018-03-07 11:32:24 +01:00
parent cec745d08a
commit 846dd710e4
5 changed files with 246 additions and 0 deletions

View File

@@ -29,6 +29,7 @@
#include "RigWellPath.h"
#include "Rim3dWellLogCurve.h"
#include "RimFishbonesMultipleSubs.h"
#include "RimMainPlotCollection.h"
#include "RimProject.h"
@@ -128,6 +129,8 @@ RimWellPath::RimWellPath()
CAF_PDM_InitFieldNoDefault(&m_wellLogFiles, "WellLogFiles", "Well Log Files", "", "", "");
m_wellLogFiles.uiCapability()->setUiTreeHidden(true);
CAF_PDM_InitFieldNoDefault(&m_3dWellLogCurves, "ArrayOf3dWellLogCurves", "3D Track", "", "", "");
CAF_PDM_InitField(&m_formationKeyInFile, "WellPathFormationKeyInFile", QString(""), "Key in File", "", "", "");
m_formationKeyInFile.uiCapability()->setUiReadOnly(true);
@@ -157,6 +160,11 @@ RimWellPath::~RimWellPath()
delete file;
}
for (const auto& rim3dWellLogCurve : m_3dWellLogCurves())
{
delete rim3dWellLogCurve;
}
RimProject* project;
firstAncestorOrThisOfType(project);
if (project)
@@ -511,6 +519,11 @@ void RimWellPath::defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, Q
uiTreeOrdering.add(&m_completions);
}
if (!m_3dWellLogCurves.empty())
{
uiTreeOrdering.add(&m_3dWellLogCurves);
}
uiTreeOrdering.skipRemainingChildren(true);
}
@@ -790,6 +803,14 @@ const RigWellPathFormations* RimWellPath::formationsGeometry() const
return m_wellPathFormations.p();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimWellPath::add3dWellLogCurve(Rim3dWellLogCurve* rim3dWellLogCurve)
{
m_3dWellLogCurves.push_back(rim3dWellLogCurve);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------