mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add isHorizontal and isVertical
This commit is contained in:
@@ -92,6 +92,22 @@ RiaDefines::PlotAxis RiuPlotAxis::axis() const
|
||||
return m_axis;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RiuPlotAxis::isHorizontal() const
|
||||
{
|
||||
return m_axis == RiaDefines::PlotAxis::PLOT_AXIS_BOTTOM || m_axis == RiaDefines::PlotAxis::PLOT_AXIS_TOP;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RiuPlotAxis::isVertical() const
|
||||
{
|
||||
return m_axis == RiaDefines::PlotAxis::PLOT_AXIS_LEFT || m_axis == RiaDefines::PlotAxis::PLOT_AXIS_RIGHT;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user