mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#9549 RFT plotting: Improve visibility for topology curves
- set row span to 2 - adjust default min/max for zoom - make symbols a bit smaller
This commit is contained in:
parent
296718fd29
commit
500b4d2922
@ -212,6 +212,7 @@ void RicNewRftSegmentWellLogPlotFeature::appendTopologyTrack( RimWellLogPlot* pl
|
||||
auto track = new RimWellLogTrack();
|
||||
track->setDescription( "Topology" );
|
||||
track->enablePropertyAxis( false );
|
||||
track->setRowSpan( RimPlot::TWO );
|
||||
|
||||
plot->addPlot( track );
|
||||
|
||||
|
@ -407,7 +407,7 @@ void RimRftTopologyCurve::applyDefaultAppearance()
|
||||
setLineStyle( RiuQwtPlotCurveDefines::LineStyleEnum::STYLE_NONE );
|
||||
}
|
||||
|
||||
int adjustedSymbolSize = symbolSize() * 1.5;
|
||||
int adjustedSymbolSize = symbolSize() * 1.2;
|
||||
setSymbolSize( adjustedSymbolSize );
|
||||
setSymbol( RiuPlotCurveSymbol::PointSymbolEnum::SYMBOL_ELLIPSE );
|
||||
}
|
||||
|
@ -59,6 +59,7 @@
|
||||
#include "RimPerforationCollection.h"
|
||||
#include "RimPerforationInterval.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimRftTopologyCurve.h"
|
||||
#include "RimTools.h"
|
||||
#include "RimWellAllocationPlot.h"
|
||||
#include "RimWellBoreStabilityPlot.h"
|
||||
@ -371,8 +372,9 @@ void RimWellLogTrack::calculatePropertyValueZoomRange()
|
||||
double minValue = HUGE_VAL;
|
||||
double maxValue = -HUGE_VAL;
|
||||
|
||||
size_t visibleCurves = 0u;
|
||||
for ( auto curve : m_curves )
|
||||
size_t topologyCurveCount = 0;
|
||||
size_t visibleCurves = 0u;
|
||||
for ( const auto& curve : m_curves )
|
||||
{
|
||||
double minCurveValue = HUGE_VAL;
|
||||
double maxCurveValue = -HUGE_VAL;
|
||||
@ -393,6 +395,16 @@ void RimWellLogTrack::calculatePropertyValueZoomRange()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( dynamic_cast<RimRftTopologyCurve*>( curve.p() ) ) topologyCurveCount++;
|
||||
}
|
||||
|
||||
if ( topologyCurveCount == m_curves.size() )
|
||||
{
|
||||
// The topology track is quite narrow, and to be able to show the curves we add extra space for min/max values
|
||||
const double range = maxValue - minValue;
|
||||
maxValue += range * 0.5;
|
||||
minValue -= range * 0.5;
|
||||
}
|
||||
|
||||
if ( minValue == HUGE_VAL )
|
||||
|
Loading…
Reference in New Issue
Block a user