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:
@@ -77,6 +77,28 @@ bool RiaDefines::isVertical( RiaDefines::PlotAxis axis )
|
||||
return ( axis == RiaDefines::PlotAxis::PLOT_AXIS_LEFT || axis == RiaDefines::PlotAxis::PLOT_AXIS_RIGHT );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiaDefines::PlotAxis RiaDefines::opposite( PlotAxis axis )
|
||||
{
|
||||
switch ( axis )
|
||||
{
|
||||
case RiaDefines::PlotAxis::PLOT_AXIS_BOTTOM:
|
||||
return RiaDefines::PlotAxis::PLOT_AXIS_TOP;
|
||||
case RiaDefines::PlotAxis::PLOT_AXIS_TOP:
|
||||
return RiaDefines::PlotAxis::PLOT_AXIS_BOTTOM;
|
||||
case RiaDefines::PlotAxis::PLOT_AXIS_LEFT:
|
||||
return RiaDefines::PlotAxis::PLOT_AXIS_RIGHT;
|
||||
case RiaDefines::PlotAxis::PLOT_AXIS_RIGHT:
|
||||
return RiaDefines::PlotAxis::PLOT_AXIS_LEFT;
|
||||
}
|
||||
|
||||
// Should never come here
|
||||
CVF_ASSERT( false );
|
||||
return {};
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user