Add support for summary cross plot curves in summary plots

This commit is contained in:
Magne Sjaastad committed 2023-09-20 13:58:22 +02:00
1 parent b87fa0bc74
commit 146412c600
44 files changed
+970 -440

No files matched your search

@@ -84,6 +84,15 @@ RiuPlotAxis RiuPlotAxis::defaultBottom()
return RiuPlotAxis( RiaDefines::PlotAxis::PLOT_AXIS_BOTTOM );
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RiuPlotAxis RiuPlotAxis::defaultBottomForSummaryVectors()
{
// Time axis is using index 0, so we need to use index 1 for the bottom axis
return RiuPlotAxis( RiaDefines::PlotAxis::PLOT_AXIS_BOTTOM, 1 );
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
@@ -32,6 +32,7 @@ public:
static RiuPlotAxis defaultRight();
static RiuPlotAxis defaultTop();
static RiuPlotAxis defaultBottom();
static RiuPlotAxis defaultBottomForSummaryVectors();
RiaDefines::PlotAxis axis() const;
@@ -349,7 +349,8 @@ void RiuQwtPlotWidget::setAxisRange( RiuPlotAxis axis, double min, double max )
//--------------------------------------------------------------------------------------------------
void RiuQwtPlotWidget::setAxisInverted( RiuPlotAxis axis, bool isInverted )
{
m_plot->axisScaleEngine( toQwtPlotAxis( axis ) )->setAttribute( QwtScaleEngine::Inverted, isInverted );
auto scaleEngine = m_plot->axisScaleEngine( toQwtPlotAxis( axis ) );
if ( scaleEngine ) scaleEngine->setAttribute( QwtScaleEngine::Inverted, isInverted );
}
//--------------------------------------------------------------------------------------------------