mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2326 Well allocation plot: Remove formation options regarding well path
This commit is contained in:
@@ -253,6 +253,7 @@ void RimWellAllocationPlot::updateFromWell()
|
||||
RimWellLogTrack* plotTrack = new RimWellLogTrack();
|
||||
|
||||
plotTrack->setDescription(QString("Branch %1").arg(brIdx + 1));
|
||||
plotTrack->setFormationsForCaseWithSimWellOnly(true);
|
||||
plotTrack->setFormationBranchIndex((int)brIdx);
|
||||
|
||||
accumulatedWellFlowPlot()->addTrack(plotTrack);
|
||||
|
||||
@@ -152,6 +152,8 @@ RimWellLogTrack::RimWellLogTrack()
|
||||
CAF_PDM_InitFieldNoDefault(&m_formationLevel, "FormationLevel", "Well Pick Filter", "", "", "");
|
||||
|
||||
CAF_PDM_InitField(&m_showformationFluids, "ShowFormationFluids", false, "Show Fluids", "", "", "");
|
||||
|
||||
m_formationsForCaseWithSimWellOnly = false;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -807,18 +809,30 @@ void RimWellLogTrack::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering&
|
||||
|
||||
formationGroup->add(&m_showFormations);
|
||||
|
||||
if (!m_formationsForCaseWithSimWellOnly)
|
||||
{
|
||||
formationGroup->add(&m_formationSource);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_formationSource = CASE;
|
||||
}
|
||||
|
||||
if (m_formationSource() == CASE)
|
||||
{
|
||||
formationGroup->add(&m_formationCase);
|
||||
|
||||
if (!m_formationsForCaseWithSimWellOnly)
|
||||
{
|
||||
formationGroup->add(&m_formationTrajectoryType);
|
||||
|
||||
if (m_formationTrajectoryType() == WELL_PATH)
|
||||
{
|
||||
formationGroup->add(&m_formationWellPathForSourceCase);
|
||||
}
|
||||
else
|
||||
}
|
||||
|
||||
if (m_formationsForCaseWithSimWellOnly || m_formationTrajectoryType() == SIMULATION_WELL)
|
||||
{
|
||||
formationGroup->add(&m_formationSimWellName);
|
||||
|
||||
@@ -996,6 +1010,14 @@ void RimWellLogTrack::uiOrderingForVisibleXRange(caf::PdmUiOrdering& uiOrdering)
|
||||
gridGroup->add(&m_visibleXRangeMax);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellLogTrack::setFormationsForCaseWithSimWellOnly(bool caseWithSimWellOnly)
|
||||
{
|
||||
m_formationsForCaseWithSimWellOnly = caseWithSimWellOnly;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -119,6 +119,8 @@ public:
|
||||
void uiOrderingForRftPltFormations(caf::PdmUiOrdering& uiOrdering);
|
||||
void uiOrderingForVisibleXRange(caf::PdmUiOrdering& uiOrdering);
|
||||
|
||||
void setFormationsForCaseWithSimWellOnly(bool caseWithSimWellOnly);
|
||||
|
||||
private:
|
||||
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue) override;
|
||||
virtual QList<caf::PdmOptionItemInfo> calculateValueOptions(const caf::PdmFieldHandle* fieldNeedingOptions, bool * useOptionsOnly) override;
|
||||
@@ -178,6 +180,8 @@ private:
|
||||
|
||||
caf::PdmField<bool> m_formationBranchDetection;
|
||||
|
||||
bool m_formationsForCaseWithSimWellOnly;
|
||||
|
||||
QPointer<RiuWellLogTrack> m_wellLogTrackPlotWidget;
|
||||
|
||||
std::unique_ptr<RiuPlotAnnotationTool> m_annotationTool;
|
||||
|
||||
Reference in New Issue
Block a user