mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix log axis crash in Grid Cross Plot and refactor log axis range code
This commit is contained in:
@@ -120,20 +120,18 @@ class QwtPlotCurve;
|
||||
///
|
||||
///
|
||||
//==================================================================================================
|
||||
class RimPlotAxisRangeCalculator
|
||||
class RimPlotAxisLogRangeCalculator
|
||||
{
|
||||
public:
|
||||
RimPlotAxisRangeCalculator(QwtPlot::Axis axis,
|
||||
const std::vector<QwtPlotCurve*>& qwtCurves,
|
||||
const std::vector<double>& axisValuesForAllCurves);
|
||||
RimPlotAxisLogRangeCalculator(QwtPlot::Axis axis,
|
||||
const std::vector<const QwtPlotCurve*>& qwtCurves);
|
||||
|
||||
void computeAxisRange(double* min, double* max) const;
|
||||
void computeAxisRange(double* minPositive, double* max) const;
|
||||
|
||||
private:
|
||||
bool curveValueRange(const QwtPlotCurve* qwtCurve, double* min, double* max) const;
|
||||
bool curveValueRange(const QwtPlotCurve* qwtCurve, double* minPositive, double* max) const;
|
||||
|
||||
private:
|
||||
QwtPlot::Axis m_axis;
|
||||
const std::vector<QwtPlotCurve*> m_singleCurves;
|
||||
const std::vector<double> m_axisValuesForAllCurves;
|
||||
QwtPlot::Axis m_axis;
|
||||
const std::vector<const QwtPlotCurve*> m_curves;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user