Skip to content

Commit 7f4bc77

Browse files
committed
RimWellRftPlot: highlight selected realization with red/orange color and increased line thickness
1 parent a22ea07 commit 7f4bc77

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

ApplicationLibCode/ProjectDataModel/Flow/RimWellRftPlot.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,14 +203,13 @@ void RimWellRftPlot::applyCurveAppearance( RimWellLogCurve* curve )
203203
{
204204
if ( m_selectedRealization && rftCurve->summaryCase() == m_selectedRealization )
205205
{
206-
auto* track = dynamic_cast<RimWellLogTrack*>( plotByIndex( 0 ) );
207-
auto* qwtWidget = track ? dynamic_cast<RiuQwtPlotWidget*>( track->plotWidget() ) : nullptr;
208-
cvf::Color3f bgColor = qwtWidget ? RiaColorTools::fromQColorTo3f( qwtWidget->backgroundColor() ) : cvf::Color3f::WHITE;
209-
curve->setColor( RiaColorTools::contrastColor( bgColor ) );
206+
curve->setColor( RiaColorTools::fromQColorTo3f( QColor( "#e8572a" ) ) );
207+
curve->setLineThickness( 3 );
210208
curve->setZOrder( RiuQwtPlotCurveDefines::zDepthForIndex( RiuQwtPlotCurveDefines::ZIndex::Z_HIGHLIGHTED_CURVE ) );
211209
}
212210
else
213211
{
212+
curve->setLineThickness( 1 );
214213
curve->setZOrder( RiuQwtPlotCurveDefines::zDepthForIndex( RiuQwtPlotCurveDefines::ZIndex::Z_ENSEMBLE_CURVE ) );
215214
}
216215
}

0 commit comments

Comments
 (0)