#4783 Ensemble RFT: make sure we get some default data sources.

This commit is contained in:
Gaute Lindkvist 2019-09-27 10:05:39 +02:00
parent da6c7cf621
commit f2be5c00fd
2 changed files with 15 additions and 6 deletions

View File

@ -68,7 +68,12 @@ public:
static std::set<RftWellLogChannelType> rftPlotChannelTypes() static std::set<RftWellLogChannelType> rftPlotChannelTypes()
{ {
return {RifEclipseRftAddress::PRESSURE}; return {RifEclipseRftAddress::PRESSURE,
RifEclipseRftAddress::PRESSURE_ERROR,
RifEclipseRftAddress::PRESSURE_MEAN,
RifEclipseRftAddress::PRESSURE_P10,
RifEclipseRftAddress::PRESSURE_P50,
RifEclipseRftAddress::PRESSURE_P90};
} }
static std::set<RftWellLogChannelType> pltPlotChannelTypes() static std::set<RftWellLogChannelType> pltPlotChannelTypes()

View File

@ -150,9 +150,12 @@ void RimWellRftPlot::applyCurveAppearance( RimWellLogCurve* newCurve )
currentColor = m_dataSourceColors[sourceAddress]; currentColor = m_dataSourceColors[sourceAddress];
if ( m_showStatisticsCurves ) if ( m_showStatisticsCurves )
{ {
cvf::Color3f backgroundColor = RiaColorTools::fromQColorTo3f( if ( trackByIndex( 0 ) && trackByIndex( 0 )->viewer() )
trackByIndex( 0 )->viewer()->canvasBackground().color() ); {
currentColor = RiaColorTools::blendCvfColors( backgroundColor, currentColor, 2, 1 ); cvf::Color3f backgroundColor = RiaColorTools::fromQColorTo3f(
trackByIndex( 0 )->viewer()->canvasBackground().color() );
currentColor = RiaColorTools::blendCvfColors( backgroundColor, currentColor, 2, 1 );
}
} }
} }
else else
@ -247,7 +250,7 @@ void RimWellRftPlot::applyInitialSelections()
sourcesToSelect.push_back( RifDataSourceForRftPlt( RifDataSourceForRftPlt::GRID, gridCase ) ); sourcesToSelect.push_back( RifDataSourceForRftPlt( RifDataSourceForRftPlt::GRID, gridCase ) );
} }
for ( RimSummaryCaseCollection* const ensemble : RimWellPlotTools::rftEnsemblesForWell( m_wellPathNameOrSimWellName ) ) for ( RimSummaryCaseCollection* const ensemble : RimWellPlotTools::rftEnsemblesForWell( simWellName ) )
{ {
sourcesToSelect.push_back( RifDataSourceForRftPlt( RifDataSourceForRftPlt::ENSEMBLE_RFT, ensemble ) ); sourcesToSelect.push_back( RifDataSourceForRftPlt( RifDataSourceForRftPlt::ENSEMBLE_RFT, ensemble ) );
} }
@ -262,7 +265,8 @@ void RimWellRftPlot::applyInitialSelections()
} }
} }
for ( RimObservedFmuRftData* const observedFmuRftData : RimWellPlotTools::observedFmuRftData() ) for ( RimObservedFmuRftData* const observedFmuRftData :
RimWellPlotTools::observedFmuRftDataForWell( m_wellPathNameOrSimWellName ) )
{ {
sourcesToSelect.push_back( sourcesToSelect.push_back(
RifDataSourceForRftPlt( RifDataSourceForRftPlt::OBSERVED_FMU_RFT, observedFmuRftData ) ); RifDataSourceForRftPlt( RifDataSourceForRftPlt::OBSERVED_FMU_RFT, observedFmuRftData ) );