mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-11 07:56:08 -06:00
Make Well Path visualisation in Well Log Plots go all the way up to surface
This commit is contained in:
parent
438febe049
commit
4405c1b25f
@ -2321,16 +2321,15 @@ void RimWellLogTrack::updateFormationNamesOnPlot()
|
||||
const std::pair<double, double> xRange = std::make_pair( m_visibleXRangeMin(), m_visibleXRangeMax() );
|
||||
|
||||
const caf::ColorTable waterAndRockColors = RiaColorTables::waterAndRockPaletteColors();
|
||||
const std::vector<std::pair<double, double>> waterAndRockIntervals = waterAndRockRegions( plot->depthType(),
|
||||
const std::vector<std::pair<double, double>> waterAndRockIntervals = waterAndRockRegions( plot->depthType(),
|
||||
extractor );
|
||||
int waterAndRockTransparency = m_colorShadingTransparency / 2;
|
||||
m_annotationTool->attachNamedRegions( m_plotWidget,
|
||||
{"Water", ""},
|
||||
xRange,
|
||||
waterAndRockIntervals,
|
||||
m_regionAnnotationDisplay(),
|
||||
waterAndRockColors,
|
||||
( ( 100 - waterAndRockTransparency ) * 255 ) / 100,
|
||||
( ( 100 - m_colorShadingTransparency ) * 255 ) / 100,
|
||||
m_showRegionLabels() );
|
||||
|
||||
if ( m_formationSource == CASE )
|
||||
|
@ -53,7 +53,7 @@ RiuWellPathComponentPlotItem::RiuWellPathComponentPlotItem( const RimWellPath* w
|
||||
, m_showLabel( false )
|
||||
{
|
||||
CVF_ASSERT( wellPath && wellPath->wellPathGeometry() );
|
||||
double wellStart = wellPath->wellPathGeometry()->measureDepths().front();
|
||||
double wellStart = 0.0;
|
||||
double wellEnd = wellPath->wellPathGeometry()->measureDepths().back();
|
||||
m_startMD = wellStart;
|
||||
m_endMD = wellEnd;
|
||||
@ -335,14 +335,33 @@ std::pair<double, double> RiuWellPathComponentPlotItem::depthsOfDepthType() cons
|
||||
|
||||
if ( m_depthType == RiaDefines::TRUE_VERTICAL_DEPTH || m_depthType == RiaDefines::TRUE_VERTICAL_DEPTH_RKB )
|
||||
{
|
||||
cvf::Vec3d startPoint = m_wellPath->wellPathGeometry()->interpolatedPointAlongWellPath( m_startMD );
|
||||
cvf::Vec3d endPoint = m_wellPath->wellPathGeometry()->interpolatedPointAlongWellPath( m_endMD );
|
||||
startDepth = -startPoint.z();
|
||||
endDepth = -endPoint.z();
|
||||
if ( m_depthType == RiaDefines::TRUE_VERTICAL_DEPTH_RKB )
|
||||
endDepth = -m_wellPath->wellPathGeometry()->interpolatedPointAlongWellPath( m_endMD ).z();
|
||||
double rkbDiff = m_wellPath->wellPathGeometry()->rkbDiff();
|
||||
if ( rkbDiff == std::numeric_limits<double>::infinity() )
|
||||
{
|
||||
startDepth += m_wellPath->wellPathGeometry()->rkbDiff();
|
||||
endDepth += m_wellPath->wellPathGeometry()->rkbDiff();
|
||||
rkbDiff = 0.0;
|
||||
}
|
||||
|
||||
if ( m_componentType == RiaDefines::WELL_PATH )
|
||||
{
|
||||
startDepth = 0.0;
|
||||
if ( m_depthType == RiaDefines::TRUE_VERTICAL_DEPTH )
|
||||
{
|
||||
startDepth -= rkbDiff;
|
||||
}
|
||||
else if ( m_depthType == RiaDefines::TRUE_VERTICAL_DEPTH_RKB )
|
||||
{
|
||||
endDepth += m_wellPath->wellPathGeometry()->rkbDiff();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
startDepth = -m_wellPath->wellPathGeometry()->interpolatedPointAlongWellPath( m_startMD ).z();
|
||||
if ( m_depthType == RiaDefines::TRUE_VERTICAL_DEPTH_RKB )
|
||||
{
|
||||
startDepth += m_wellPath->wellPathGeometry()->rkbDiff();
|
||||
endDepth += m_wellPath->wellPathGeometry()->rkbDiff();
|
||||
}
|
||||
}
|
||||
}
|
||||
return std::make_pair( startDepth, endDepth );
|
||||
|
Loading…
Reference in New Issue
Block a user