#2112 Avoid updating legend for each curve. Generalize and roll out the solution found for summary curves

This commit is contained in:
Jacob Støren
2017-11-11 23:15:13 +01:00
parent 9070a97815
commit 324d6d72e3
10 changed files with 34 additions and 26 deletions

View File

@@ -449,14 +449,16 @@ void RimWellLogTrack::loadDataAndUpdate()
{
RimWellLogPlot* wellLogPlot;
firstAncestorOrThisOfType(wellLogPlot);
if (wellLogPlot && m_wellLogTrackPlotWidget)
{
m_wellLogTrackPlotWidget->setDepthTitle(wellLogPlot->depthPlotTitle());
m_wellLogTrackPlotWidget->setXTitle(m_xAxisTitle);
}
for (size_t cIdx = 0; cIdx < curves.size(); ++cIdx)
{
curves[cIdx]->loadDataAndUpdate(true);
curves[cIdx]->loadDataAndUpdate(false);
}
if (m_showFormations)
@@ -467,8 +469,14 @@ void RimWellLogTrack::loadDataAndUpdate()
{
setFormationFieldsUiReadOnly(true);
}
updateFormationNamesOnPlot();
if ( m_wellLogTrackPlotWidget )
{
m_wellLogTrackPlotWidget->updateLegend();
this->updateAxisScaleEngine();
this->updateFormationNamesOnPlot();
this->updateXZoomAndParentPlotDepthZoom();
}
}
//--------------------------------------------------------------------------------------------------