SedSat3 1.1.6
Sediment Source Apportionment Tool - Advanced statistical methods for environmental pollution research
Loading...
Searching...
No Matches
progressreporter.h
Go to the documentation of this file.
1#ifndef PROGRESSREPORTER_H
2#define PROGRESSREPORTER_H
3
4#include <QString>
5
30{
31public:
32 virtual ~ProgressReporter() = default;
33
41 virtual void Start() {}
42
50 virtual void Finish() {}
51
58 virtual void AppendPoint(const double& x, const double& y, int chart = 0) = 0;
59
64 virtual void SetProgress(const double& prog) = 0;
65
70 virtual void SetProgress2(const double& prog) = 0;
71
73 virtual void SetLabel(const QString& label) = 0;
74
76 virtual void SetYRange(const double& y0, const double& y1, int chart = 0) = 0;
77
79 virtual void SetXRange(const double& x0, const double& x1, int chart = 0) = 0;
80
82 virtual void SetTitle(const QString& title, int chart = 0) = 0;
83
85 virtual void SetXAxisTitle(const QString& title, int chart = 0) = 0;
86
88 virtual void SetYAxisTitle(const QString& title, int chart = 0) = 0;
89
91 virtual void ClearGraph(int chart = 0) = 0;
92
94 virtual void SetChartTitle(int i, const QString& title) = 0;
95};
96
106{
107public:
108 void AppendPoint(const double&, const double&, int) override {}
109 void SetProgress(const double&) override {}
110 void SetProgress2(const double&) override {}
111 void SetLabel(const QString&) override {}
112 void SetYRange(const double&, const double&, int) override {}
113 void SetXRange(const double&, const double&, int) override {}
114 void SetTitle(const QString&, int) override {}
115 void SetXAxisTitle(const QString&, int) override {}
116 void SetYAxisTitle(const QString&, int) override {}
117 void ClearGraph(int) override {}
118 void SetChartTitle(int, const QString&) override {}
119};
120
121#endif // PROGRESSREPORTER_H
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.