mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2581 3D well log curves: Create 3D curve object on a well path
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user