From a35c395f54e0fab65c9e71235790ff2bbe683f02 Mon Sep 17 00:00:00 2001 From: Gaute Lindkvist Date: Thu, 13 Feb 2020 10:21:22 +0100 Subject: [PATCH] Minor visual improvements to Well Path Attribute track * Make well slightly wider --- ApplicationCode/ProjectDataModel/RimWellLogTrack.cpp | 7 ++++++- .../UserInterface/RiuWellPathComponentPlotItem.cpp | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ApplicationCode/ProjectDataModel/RimWellLogTrack.cpp b/ApplicationCode/ProjectDataModel/RimWellLogTrack.cpp index 8c8191b256..b592e8d2af 100644 --- a/ApplicationCode/ProjectDataModel/RimWellLogTrack.cpp +++ b/ApplicationCode/ProjectDataModel/RimWellLogTrack.cpp @@ -454,11 +454,16 @@ void RimWellLogTrack::updateXZoom() // Attribute range. Fixed range where well components are positioned [-1, 1]. // Set an extended range here to allow for some label space. - double componentRangeMax = 1.5 * ( 4 / ( static_cast( colSpan() ) ) ); + double componentRangeMax = 2.0 / ( static_cast( colSpan() ) ); double componentRangeMin = -0.25; if ( m_showWellPathComponentsBothSides ) { componentRangeMin = -1.5; + componentRangeMax *= 2.0; + } + if ( m_showWellPathComponentLabels ) + { + componentRangeMax *= 1.5; } m_plotWidget->setAxisRange( QwtPlot::xBottom, componentRangeMin, componentRangeMax ); diff --git a/ApplicationCode/UserInterface/RiuWellPathComponentPlotItem.cpp b/ApplicationCode/UserInterface/RiuWellPathComponentPlotItem.cpp index 5840f541e9..73d9c34763 100644 --- a/ApplicationCode/UserInterface/RiuWellPathComponentPlotItem.cpp +++ b/ApplicationCode/UserInterface/RiuWellPathComponentPlotItem.cpp @@ -282,8 +282,8 @@ void RiuWellPathComponentPlotItem::onLoadDataAndUpdate( bool updateParentPlot ) } else if ( m_componentType == RiaDefines::PACKER ) { - addColumnFeature( -casingTrackEnd, -0.25, startDepth, endDepth, componentColor(), Qt::DiagCrossPattern ); - addColumnFeature( 0.25, casingTrackEnd, startDepth, endDepth, componentColor(), Qt::DiagCrossPattern ); + addColumnFeature( -1.1 * casingTrackEnd, -0.25, startDepth, endDepth, componentColor(), Qt::DiagCrossPattern ); + addColumnFeature( 0.25, 1.1 * casingTrackEnd, startDepth, endDepth, componentColor(), Qt::DiagCrossPattern ); addMarker( casingTrackEnd, midDepth, 10, RiuQwtSymbol::SYMBOL_RIGHT_ANGLED_TRIANGLE, componentColor( 0.0 ), label() ); } m_combinedComponentGroup.setTitle( legendTitle() );