mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6652 Fix missing legend entries in summary editor
This commit is contained in:
committed by
Magne Sjaastad
parent
fde2c5e4af
commit
2de49891fb
@@ -542,7 +542,7 @@ void RimWellRftPlot::updateCurvesInPlot( const std::set<RiaRftPltCurveDefinition
|
||||
|
||||
bool isFirstSummaryCurveInEnsemble =
|
||||
ensemblesWithSummaryCurves.count( curveDefToAdd.address().ensemble() ) == 0u;
|
||||
curve->showLegend( isFirstSummaryCurveInEnsemble );
|
||||
curve->setShowInLegend( isFirstSummaryCurveInEnsemble );
|
||||
ensemblesWithSummaryCurves.insert( curveDefToAdd.address().ensemble() );
|
||||
}
|
||||
else if ( m_showStatisticsCurves && curveDefToAdd.address().sourceType() == RifDataSourceForRftPlt::ENSEMBLE_RFT )
|
||||
|
||||
@@ -618,7 +618,7 @@ void RimGridCrossPlotDataSet::createCurves( const RigEclipseCrossPlotResult& res
|
||||
}
|
||||
curve->setSymbolEdgeColor( curve->color() );
|
||||
curve->setSamples( it->second.xValues, it->second.yValues );
|
||||
curve->showLegend( m_crossPlotCurves.empty() );
|
||||
curve->setShowInLegend( m_crossPlotCurves.empty() );
|
||||
curve->setLegendEntryText( createAutoName() );
|
||||
curve->setCurveAutoAppearance();
|
||||
curve->updateUiIconFromPlotSymbol();
|
||||
|
||||
@@ -1034,7 +1034,23 @@ void RimPlotCurve::setFillColor( const cvf::Color3f& fillColor )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimPlotCurve::showLegend( bool show )
|
||||
bool RimPlotCurve::showInLegend() const
|
||||
{
|
||||
return m_showLegend;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimPlotCurve::errorBarsVisible() const
|
||||
{
|
||||
return m_showErrorBars;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimPlotCurve::setShowInLegend( bool show )
|
||||
{
|
||||
m_showLegend = show;
|
||||
updateLegendEntryVisibilityNoPlotUpdate();
|
||||
|
||||
@@ -111,10 +111,11 @@ public:
|
||||
void updateLegendEntryVisibilityAndPlotLegend();
|
||||
void updateLegendEntryVisibilityNoPlotUpdate();
|
||||
|
||||
void showLegend( bool show );
|
||||
bool showInLegend() const;
|
||||
bool errorBarsVisible() const;
|
||||
|
||||
void setShowInLegend( bool show );
|
||||
void setZOrder( double z );
|
||||
|
||||
void setErrorBarsVisible( bool isVisible );
|
||||
|
||||
virtual void updateCurveAppearance();
|
||||
|
||||
Reference in New Issue
Block a user