mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-23 23:13:39 -06:00
Make sea level visualization a GeoMech-only feature.
* This is because it works poorly with eclipse grids because they don't specify the sea bed level.
This commit is contained in:
parent
82263e9d6f
commit
f38967e7cb
@ -2327,19 +2327,22 @@ void RimWellLogTrack::updateFormationNamesOnPlot()
|
||||
// Attach water and rock base formations
|
||||
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(), extractor );
|
||||
m_annotationTool->attachNamedRegions( m_plotWidget,
|
||||
{"Sea Level", ""},
|
||||
xRange,
|
||||
waterAndRockIntervals,
|
||||
m_regionAnnotationDisplay(),
|
||||
waterAndRockColors,
|
||||
( ( 100 - m_colorShadingTransparency ) * 255 ) / 100,
|
||||
m_showRegionLabels(),
|
||||
RiuPlotAnnotationTool::LEFT_COLUMN,
|
||||
{Qt::SolidPattern, Qt::Dense6Pattern} );
|
||||
if ( geoMechWellLogExtractor )
|
||||
{
|
||||
const caf::ColorTable waterAndRockColors = RiaColorTables::waterAndRockPaletteColors();
|
||||
const std::vector<std::pair<double, double>> waterAndRockIntervals =
|
||||
waterAndRockRegions( plot->depthType(), extractor );
|
||||
m_annotationTool->attachNamedRegions( m_plotWidget,
|
||||
{"Sea Level", ""},
|
||||
xRange,
|
||||
waterAndRockIntervals,
|
||||
m_regionAnnotationDisplay(),
|
||||
waterAndRockColors,
|
||||
( ( 100 - m_colorShadingTransparency ) * 255 ) / 100,
|
||||
m_showRegionLabels(),
|
||||
RiuPlotAnnotationTool::LEFT_COLUMN,
|
||||
{Qt::SolidPattern, Qt::Dense6Pattern} );
|
||||
}
|
||||
|
||||
if ( m_formationSource == CASE )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user