mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Show well completion annotations in horizontal plots (#9193)
This commit is contained in:
@@ -1222,10 +1222,17 @@ RimDepthTrackPlot::DepthOrientation RimDepthTrackPlot::depthOrientation() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuPlotAxis RimDepthTrackPlot::depthAxis() const
|
||||
{
|
||||
if ( m_depthOrientation() == RimDepthTrackPlot::DepthOrientation::VERTICAL )
|
||||
return RiuPlotAxis::defaultLeft();
|
||||
else
|
||||
return RiuPlotAxis::defaultBottom();
|
||||
return depthAxis( m_depthOrientation() );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuPlotAxis RimDepthTrackPlot::depthAxis( DepthOrientation depthOrientation )
|
||||
{
|
||||
if ( depthOrientation == RimDepthTrackPlot::DepthOrientation::VERTICAL ) return RiuPlotAxis::defaultLeft();
|
||||
|
||||
return RiuPlotAxis::defaultBottom();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -1233,10 +1240,37 @@ RiuPlotAxis RimDepthTrackPlot::depthAxis() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuPlotAxis RimDepthTrackPlot::valueAxis() const
|
||||
{
|
||||
if ( m_depthOrientation() == RimDepthTrackPlot::DepthOrientation::VERTICAL )
|
||||
return RiuPlotAxis::defaultTop();
|
||||
else
|
||||
return RiuPlotAxis::defaultLeft();
|
||||
return valueAxis( m_depthOrientation() );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuPlotAxis RimDepthTrackPlot::valueAxis( DepthOrientation depthOrientation )
|
||||
{
|
||||
if ( depthOrientation == RimDepthTrackPlot::DepthOrientation::VERTICAL ) return RiuPlotAxis::defaultTop();
|
||||
|
||||
return RiuPlotAxis::defaultLeft();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuPlotAxis RimDepthTrackPlot::annotationAxis() const
|
||||
{
|
||||
return annotationAxis( m_depthOrientation() );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuPlotAxis RimDepthTrackPlot::annotationAxis( DepthOrientation depthOrientation )
|
||||
{
|
||||
auto riuAxis = valueAxis( depthOrientation );
|
||||
|
||||
auto oppositeAxis = RiaDefines::opposite( riuAxis.axis() );
|
||||
|
||||
return RiuPlotAxis( oppositeAxis );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user