#2129 Rft/Plt plot: Show formations on default

This commit is contained in:
Rebecca Cox 2017-11-12 21:22:12 +01:00
parent 7e6b45c626
commit 3e40331c5b
4 changed files with 20 additions and 0 deletions

View File

@ -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();
}

View File

@ -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);

View File

@ -655,6 +655,14 @@ void RimWellLogTrack::updateXZoom()
updateConnectedEditors();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimWellLogTrack::setShowFormations(bool on)
{
m_showFormations = on;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -91,6 +91,8 @@ public:
void updateXZoomAndParentPlotDepthZoom();
void updateXZoom();
void setShowFormations(bool on);
RiuWellLogTrack* viewer();
RimWellLogCurve* curveDefinitionFromCurve(const QwtPlotCurve* curve) const;