mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2129 Rft/Plt plot: Show formations on default
This commit is contained in:
parent
7e6b45c626
commit
3e40331c5b
@ -1119,6 +1119,7 @@ void RimWellPltPlot::fieldChangedByUi(const caf::PdmFieldHandle* changedField, c
|
||||
plotTrack->removeCurve(curve);
|
||||
}
|
||||
m_timeStepsToAddresses.clear();
|
||||
updateFormationsOnPlot();
|
||||
}
|
||||
else if (changedField == &m_selectedSources)
|
||||
{
|
||||
@ -1128,6 +1129,7 @@ void RimWellPltPlot::fieldChangedByUi(const caf::PdmFieldHandle* changedField, c
|
||||
if (changedField == &m_selectedSources ||
|
||||
changedField == &m_selectedTimeSteps)
|
||||
{
|
||||
updateFormationsOnPlot();
|
||||
syncSourcesIoFieldFromGuiField();
|
||||
syncCurvesFromUiSelection();
|
||||
}
|
||||
@ -1254,6 +1256,11 @@ void RimWellPltPlot::initAfterLoad()
|
||||
}
|
||||
}
|
||||
m_selectedSources = std::vector<RifWellRftAddress>(selectedSources.begin(), selectedSources.end());
|
||||
|
||||
if( m_wellLogPlot->trackCount() > 0);
|
||||
{
|
||||
m_wellLogPlot->trackByIndex(0)->setShowFormations(true);
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -1438,6 +1445,7 @@ void RimWellPltPlot::onLoadDataAndUpdate()
|
||||
}
|
||||
|
||||
updateMdiWindowVisibility();
|
||||
updateFormationsOnPlot();
|
||||
syncCurvesFromUiSelection();
|
||||
m_wellLogPlot->loadDataAndUpdate();
|
||||
}
|
||||
|
@ -258,6 +258,8 @@ void RimWellRftPlot::updateFormationsOnPlot() const
|
||||
{
|
||||
if (m_wellLogPlot->trackCount() > 0)
|
||||
{
|
||||
m_wellLogPlot->trackByIndex(0)->setShowFormations(true);
|
||||
|
||||
RimProject* proj = RiaApplication::instance()->project();
|
||||
RimWellPath* wellPath = proj->wellPathByName(m_wellPathNameOrSimWellName);
|
||||
|
||||
|
@ -655,6 +655,14 @@ void RimWellLogTrack::updateXZoom()
|
||||
updateConnectedEditors();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellLogTrack::setShowFormations(bool on)
|
||||
{
|
||||
m_showFormations = on;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -91,6 +91,8 @@ public:
|
||||
void updateXZoomAndParentPlotDepthZoom();
|
||||
void updateXZoom();
|
||||
|
||||
void setShowFormations(bool on);
|
||||
|
||||
RiuWellLogTrack* viewer();
|
||||
|
||||
RimWellLogCurve* curveDefinitionFromCurve(const QwtPlotCurve* curve) const;
|
||||
|
Loading…
Reference in New Issue
Block a user