1#ifndef PROGRESSREPORTER_H
2#define PROGRESSREPORTER_H
58 virtual void AppendPoint(
const double&
x,
const double&
y,
int chart = 0) = 0;
73 virtual void SetLabel(
const QString& label) = 0;
76 virtual void SetYRange(
const double& y0,
const double& y1,
int chart = 0) = 0;
79 virtual void SetXRange(
const double& x0,
const double& x1,
int chart = 0) = 0;
82 virtual void SetTitle(
const QString& title,
int chart = 0) = 0;
112 void SetYRange(
const double&,
const double&,
int)
override {}
113 void SetXRange(
const double&,
const double&,
int)
override {}
ProgressReporter that discards everything reported to it.
void SetXRange(const double &, const double &, int) override
Sets the horizontal range of a chart.
void AppendPoint(const double &, const double &, int) override
Adds a point to one of the progress charts.
void SetProgress2(const double &) override
Sets the secondary progress fraction, where one is displayed.
void SetYRange(const double &, const double &, int) override
Sets the vertical range of a chart.
void SetTitle(const QString &, int) override
Sets the title of a chart.
void ClearGraph(int) override
Discards the points accumulated in a chart.
void SetProgress(const double &) override
Sets the primary progress fraction.
void SetYAxisTitle(const QString &, int) override
Sets the vertical axis title of a chart.
void SetLabel(const QString &) override
Sets the free-text status label.
void SetChartTitle(int, const QString &) override
Sets the title of chart i.
void SetXAxisTitle(const QString &, int) override
Sets the horizontal axis title of a chart.
Abstract sink for progress information produced by a running analysis.
virtual void SetXAxisTitle(const QString &title, int chart=0)=0
Sets the horizontal axis title of a chart.
virtual void SetYRange(const double &y0, const double &y1, int chart=0)=0
Sets the vertical range of a chart.
virtual void SetLabel(const QString &label)=0
Sets the free-text status label.
virtual void SetProgress2(const double &prog)=0
Sets the secondary progress fraction, where one is displayed.
virtual void Start()
Makes the reporter visible or otherwise begins reporting.
virtual void SetXRange(const double &x0, const double &x1, int chart=0)=0
Sets the horizontal range of a chart.
virtual ~ProgressReporter()=default
virtual void SetYAxisTitle(const QString &title, int chart=0)=0
Sets the vertical axis title of a chart.
virtual void SetProgress(const double &prog)=0
Sets the primary progress fraction.
virtual void ClearGraph(int chart=0)=0
Discards the points accumulated in a chart.
virtual void SetTitle(const QString &title, int chart=0)=0
Sets the title of a chart.
virtual void SetChartTitle(int i, const QString &title)=0
Sets the title of chart i.
virtual void Finish()
Ends reporting.
virtual void AppendPoint(const double &x, const double &y, int chart=0)=0
Adds a point to one of the progress charts.