#8583 RFT Plots : Add support for data source management to well log plots

This commit is contained in:
Magne Sjaastad
2022-02-24 10:03:30 +01:00
parent 7f41349b5c
commit 10a01972f3
11 changed files with 396 additions and 139 deletions

View File

@@ -368,6 +368,17 @@ RimWellLogRftCurve*
plotTrack->setFormationCase( resultCase );
plotTrack->setFormationSimWellName( simWell->name() );
}
else if ( resultCase )
{
curve->setEclipseResultCase( resultCase );
auto wellNames = resultCase->rftReader()->wellNames();
if ( !wellNames.empty() )
{
auto wellName = *( wellNames.begin() );
curve->setDefaultAddress( wellName );
}
}
cvf::Color3f curveColor = RicWellLogPlotCurveFeatureImpl::curveColorFromTable( plotTrack->curveCount() );
curve->setColor( curveColor );