|
SedSat3 1.1.6
Sediment Source Apportionment Tool - Advanced statistical methods for environmental pollution research
|
#include </home/runner/work/SedSat3/SedSat3/generalchart.h>


Public Member Functions | |
| GeneralChart (QWidget *parent=nullptr) | |
| ~GeneralChart () | |
| bool | Plot (ResultItem *res) |
| bool | PlotVector (CMBVector *profile, const QString &title) |
| bool | PlotVectorSet (CMBVectorSet *profile, const QString &title) |
| bool | PlotVectorSetSet (CMBVectorSetSet *profile, const QString &title) |
| bool | PlotMatrix (CMBMatrix *matrix, const QString &title) |
| bool | PlotProfileSet (Elemental_Profile_Set *elementalprofileset, const QString &title) |
| bool | PlotContribution (Contribution *contributions, const QString &title) |
| bool | PlotPredictedConcentration (Elemental_Profile *elemental_profile, const QString &title) |
| bool | PlotRegressionSet (MultipleLinearRegressionSet *regressionset, const QString &title) |
| bool | PlotTimeSeriesSet (CMBTimeSeriesSet *regressionset, const QString &title, const QString &x_axis_title="", const QString &y_axis_title="") |
| bool | PlotTimeSeriesSet_M (CMBTimeSeriesSet *timeseriesset, const QString &title, const QString &x_axis_title="", const QString &y_axis_title="") |
| bool | PlotTimeSeriesSet_A (CMBTimeSeriesSet *timeseriesset, const QString &title, const QString &x_axis_title="", const QString &y_axis_title="") |
| bool | PlotTimeSeriesSet_Stacked (CMBTimeSeriesSet *timeseriesset, const QString &title, const QString &x_axis_title, const QString &y_axis_title="") |
| bool | PlotRangeSet (RangeSet *rangeset, const QString &title, const QString &x_axis_title, const QString &y_axis_title) |
| bool | InitializeMCMCSamples (CMBTimeSeriesSet *mcmcsamples, const QString &title) |
| bool | InitializeDistributions (CMBTimeSeriesSet *distributions, const QString &title) |
| bool | PlotMCMCSamples (TimeSeries< double > *mlr, const QString &variable) |
| bool | PlotDistribution (TimeSeries< double > *mlr, const QString &variable) |
| bool | PlotScatter (CMBMatrix *matrix) |
| bool | PlotScatter (CMBVectorSet *vectorset) |
| bool | PlotScatter (CMBVectorSet *vectorset1, CMBVectorSet *vectorset2, const QString &xaxis_title, const QString &yaxistitle) |
Private Member Functions | |
| bool | PlotRegression (MultipleLinearRegression *timeseriesset, const QString &independent_var) |
| QColor | SeriesColor (const QString &name) |
| QString | ConstituentAxisTitle () const |
| QString | ValueAxisTitle (const QString &fallback=QString()) const |
| void | onIndependentChanged (int i_independent) |
| void | onElementChanged (int i_constituent) |
| void | onPairChanged (int pair_id) |
| void | onDFAPairChanged (int pair_id) |
| void | onMCMCVariableChanged (int) |
| void | onDistributionsVariableChanged (int) |
| void | on_Exporttopng () |
| std::vector< QPointF > | calculateRotatedEllipsePoints (double centerX, double centerY, double semiMajorAxis, double semiMinorAxis, double rotationAngle, double interval) |
Private Attributes | |
| Ui::GeneralChart * | ui |
| Chart * | chart |
| ChartView * | chartView |
| QComboBox * | element_combo {} |
| QComboBox * | source1_combo {} |
| QComboBox * | source2_combo {} |
| QComboBox * | independent_combo {} |
| ResultItem * | result_item =nullptr |
| QMap< QString, QColor > | series_colors |
Definition at line 32 of file generalchart.h.
|
explicit |
Definition at line 12 of file generalchart.cpp.
References GeneralChart(), chart, chartView, on_Exporttopng(), and ui.
Referenced by GeneralChart().
| GeneralChart::~GeneralChart | ( | ) |
Definition at line 24 of file generalchart.cpp.
References ui.
|
private |
|
private |
Definition at line 161 of file generalchart.cpp.
References result_item.
Referenced by PlotPredictedConcentration(), PlotProfileSet(), and PlotVector().
| bool GeneralChart::InitializeDistributions | ( | CMBTimeSeriesSet * | distributions, |
| const QString & | title ) |
Definition at line 647 of file generalchart.cpp.
References element_combo, onDistributionsVariableChanged(), and ui.
Referenced by Plot().
| bool GeneralChart::InitializeMCMCSamples | ( | CMBTimeSeriesSet * | mcmcsamples, |
| const QString & | title ) |
Definition at line 627 of file generalchart.cpp.
References element_combo, onMCMCVariableChanged(), and ui.
Referenced by Plot().
|
private |
Definition at line 1606 of file generalchart.cpp.
References chart, and chartView.
Referenced by GeneralChart().
|
private |
Definition at line 705 of file generalchart.cpp.
References chart, PlotScatter(), result_item, source1_combo, source2_combo, and vectorset.
Referenced by PlotVectorSetSet().
|
private |
Definition at line 734 of file generalchart.cpp.
References element_combo, PlotDistribution(), and result_item.
Referenced by InitializeDistributions().
|
private |
Definition at line 668 of file generalchart.cpp.
References element_combo, independent_combo, mlrset, PlotRegression(), and result_item.
Referenced by PlotRegressionSet().
|
private |
Definition at line 741 of file generalchart.cpp.
References element_combo, independent_combo, mlrset, PlotRegression(), and result_item.
Referenced by PlotRegressionSet().
|
private |
Definition at line 727 of file generalchart.cpp.
References element_combo, PlotMCMCSamples(), and result_item.
Referenced by InitializeMCMCSamples().
|
private |
Definition at line 684 of file generalchart.cpp.
References chart, element_combo, PlotVector(), result_item, and vectorset.
Referenced by PlotVectorSet().
| bool GeneralChart::Plot | ( | ResultItem * | res | ) |
Definition at line 29 of file generalchart.cpp.
References chartView, contribution, dfa_vectorsetset, distribution, distribution_with_observed, elemental_profile_set, InitializeDistributions(), InitializeMCMCSamples(), matrix, matrix1vs1, mcmc_samples, mlrset, ResultItem::Name(), PlotContribution(), PlotMatrix(), PlotPredictedConcentration(), PlotProfileSet(), PlotRangeSet(), PlotRegressionSet(), PlotScatter(), PlotTimeSeriesSet(), PlotTimeSeriesSet_M(), PlotTimeSeriesSet_Stacked(), PlotVector(), PlotVectorSet(), PlotVectorSetSet(), predicted_concentration, rangeset, rangeset_with_observed, ResultItem::Result(), result_item, stacked_bar_chart, timeseries_set, timeseries_set_first_symbol, ResultItem::Type(), vector, vectorset, vectorset_groups, ResultItem::XAxisTitle(), and ResultItem::YAxisTitle().
Referenced by ResultsWindow::on_result_graph_clicked().
| bool GeneralChart::PlotContribution | ( | Contribution * | contributions, |
| const QString & | title ) |
Definition at line 507 of file generalchart.cpp.
References chart, chartView, and SeriesColor().
Referenced by Plot().
| bool GeneralChart::PlotDistribution | ( | TimeSeries< double > * | mlr, |
| const QString & | variable ) |
Definition at line 1173 of file generalchart.cpp.
References chart, distribution_with_observed, high, low, CMBTimeSeriesSet::ObservedValue(), PadRange(), result_item, and samples.
Referenced by onDistributionsVariableChanged().
| bool GeneralChart::PlotMatrix | ( | CMBMatrix * | matrix, |
| const QString & | title ) |
Definition at line 359 of file generalchart.cpp.
References chart, counter, log, matrix, result_item, roundDown(), SeriesColor(), and SetLogRange().
Referenced by Plot().
| bool GeneralChart::PlotMCMCSamples | ( | TimeSeries< double > * | mlr, |
| const QString & | variable ) |
Definition at line 1108 of file generalchart.cpp.
References chart, PadRange(), and samples.
Referenced by onMCMCVariableChanged().
| bool GeneralChart::PlotPredictedConcentration | ( | Elemental_Profile * | elemental_profile, |
| const QString & | title ) |
Definition at line 538 of file generalchart.cpp.
References chart, ConstituentAxisTitle(), counter, Elemental_Profile::GetElementNames(), Elemental_Profile::GetMaximum(), Elemental_Profile::GetMinimum(), high, log, low, PadRange(), result_item, SetLogRange(), and ValueAxisTitle().
Referenced by Plot().
| bool GeneralChart::PlotProfileSet | ( | Elemental_Profile_Set * | elementalprofileset, |
| const QString & | title ) |
Definition at line 437 of file generalchart.cpp.
References chart, ConstituentAxisTitle(), counter, Elemental_Profile_Set::GetElementNames(), Elemental_Profile_Set::GetMaximum(), Elemental_Profile_Set::GetMinimum(), high, log, low, PadRange(), result_item, SeriesColor(), SetLogRange(), and ValueAxisTitle().
Referenced by Plot().
| bool GeneralChart::PlotRangeSet | ( | RangeSet * | rangeset, |
| const QString & | title, | ||
| const QString & | x_axis_title, | ||
| const QString & | y_axis_title ) |
Definition at line 1309 of file generalchart.cpp.
References chart, counter, high, log, low, rangeset, rangeset_with_observed, and result_item.
Referenced by Plot().
|
private |
Definition at line 751 of file generalchart.cpp.
References chart, linear, log, mlr, PadRange(), x, and y.
Referenced by onElementChanged(), and onIndependentChanged().
| bool GeneralChart::PlotRegressionSet | ( | MultipleLinearRegressionSet * | regressionset, |
| const QString & | title ) |
Definition at line 602 of file generalchart.cpp.
References element_combo, independent_combo, onElementChanged(), onIndependentChanged(), and ui.
Referenced by Plot().
| bool GeneralChart::PlotScatter | ( | CMBMatrix * | matrix | ) |
Definition at line 890 of file generalchart.cpp.
References chart, matrix, and SeriesColor().
Referenced by onDFAPairChanged(), and Plot().
| bool GeneralChart::PlotScatter | ( | CMBVectorSet * | vectorset | ) |
Definition at line 942 of file generalchart.cpp.
References chart, counter, result_item, SeriesColor(), ValueAxisTitle(), and vectorset.
| bool GeneralChart::PlotScatter | ( | CMBVectorSet * | vectorset1, |
| CMBVectorSet * | vectorset2, | ||
| const QString & | xaxis_title, | ||
| const QString & | yaxistitle ) |
Definition at line 994 of file generalchart.cpp.
References calculateRotatedEllipsePoints(), chart, counter, CMBVectorSet::max(), CMBVectorSet::min(), SeriesColor(), x, and y.
| bool GeneralChart::PlotTimeSeriesSet | ( | CMBTimeSeriesSet * | regressionset, |
| const QString & | title, | ||
| const QString & | x_axis_title = "", | ||
| const QString & | y_axis_title = "" ) |
Definition at line 1267 of file generalchart.cpp.
References chart, and SeriesColor().
Referenced by Plot().
| bool GeneralChart::PlotTimeSeriesSet_A | ( | CMBTimeSeriesSet * | timeseriesset, |
| const QString & | title, | ||
| const QString & | x_axis_title = "", | ||
| const QString & | y_axis_title = "" ) |
Definition at line 1511 of file generalchart.cpp.
References chart, high, CMBTimeSeriesSet::Label(), low, result_item, and SeriesColor().
| bool GeneralChart::PlotTimeSeriesSet_M | ( | CMBTimeSeriesSet * | timeseriesset, |
| const QString & | title, | ||
| const QString & | x_axis_title = "", | ||
| const QString & | y_axis_title = "" ) |
Definition at line 1444 of file generalchart.cpp.
References chart, CMBTimeSeriesSet::Label(), and SeriesColor().
Referenced by Plot().
| bool GeneralChart::PlotTimeSeriesSet_Stacked | ( | CMBTimeSeriesSet * | timeseriesset, |
| const QString & | title, | ||
| const QString & | x_axis_title, | ||
| const QString & | y_axis_title = "" ) |
Definition at line 1560 of file generalchart.cpp.
References chart, high, CMBTimeSeriesSet::Label(), low, result_item, and SeriesColor().
Referenced by Plot().
| bool GeneralChart::PlotVector | ( | CMBVector * | profile, |
| const QString & | title ) |
Definition at line 261 of file generalchart.cpp.
References CMBVector::append(), chart, ConstituentAxisTitle(), counter, high, CMBVector::Labels(), log, low, result_item, roundDown(), SetLogRange(), and ValueAxisTitle().
Referenced by onPairChanged(), and Plot().
| bool GeneralChart::PlotVectorSet | ( | CMBVectorSet * | profile, |
| const QString & | title ) |
Definition at line 240 of file generalchart.cpp.
References element_combo, onPairChanged(), and ui.
Referenced by Plot().
| bool GeneralChart::PlotVectorSetSet | ( | CMBVectorSetSet * | profile, |
| const QString & | title ) |
Definition at line 205 of file generalchart.cpp.
References onDFAPairChanged(), SeriesColor(), source1_combo, source2_combo, and ui.
Referenced by Plot().
|
private |
Definition at line 150 of file generalchart.cpp.
References name, series_colors, and series_palette.
Referenced by PlotContribution(), PlotMatrix(), PlotProfileSet(), PlotScatter(), PlotScatter(), PlotScatter(), PlotTimeSeriesSet(), PlotTimeSeriesSet_A(), PlotTimeSeriesSet_M(), PlotTimeSeriesSet_Stacked(), and PlotVectorSetSet().
|
private |
Definition at line 167 of file generalchart.cpp.
References result_item.
Referenced by PlotPredictedConcentration(), PlotProfileSet(), PlotScatter(), and PlotVector().
|
private |
Definition at line 62 of file generalchart.h.
Referenced by GeneralChart(), on_Exporttopng(), onDFAPairChanged(), onPairChanged(), PlotContribution(), PlotDistribution(), PlotMatrix(), PlotMCMCSamples(), PlotPredictedConcentration(), PlotProfileSet(), PlotRangeSet(), PlotRegression(), PlotScatter(), PlotScatter(), PlotScatter(), PlotTimeSeriesSet(), PlotTimeSeriesSet_A(), PlotTimeSeriesSet_M(), PlotTimeSeriesSet_Stacked(), and PlotVector().
|
private |
Definition at line 63 of file generalchart.h.
Referenced by GeneralChart(), on_Exporttopng(), Plot(), and PlotContribution().
|
private |
Definition at line 64 of file generalchart.h.
Referenced by InitializeDistributions(), InitializeMCMCSamples(), onDistributionsVariableChanged(), onElementChanged(), onIndependentChanged(), onMCMCVariableChanged(), onPairChanged(), PlotRegressionSet(), and PlotVectorSet().
|
private |
Definition at line 67 of file generalchart.h.
Referenced by onElementChanged(), onIndependentChanged(), and PlotRegressionSet().
|
private |
Definition at line 69 of file generalchart.h.
Referenced by ConstituentAxisTitle(), onDFAPairChanged(), onDistributionsVariableChanged(), onElementChanged(), onIndependentChanged(), onMCMCVariableChanged(), onPairChanged(), Plot(), PlotDistribution(), PlotMatrix(), PlotPredictedConcentration(), PlotProfileSet(), PlotRangeSet(), PlotScatter(), PlotTimeSeriesSet_A(), PlotTimeSeriesSet_Stacked(), PlotVector(), and ValueAxisTitle().
|
private |
Definition at line 70 of file generalchart.h.
Referenced by SeriesColor().
|
private |
Definition at line 65 of file generalchart.h.
Referenced by onDFAPairChanged(), and PlotVectorSetSet().
|
private |
Definition at line 66 of file generalchart.h.
Referenced by onDFAPairChanged(), and PlotVectorSetSet().
|
private |
Definition at line 61 of file generalchart.h.
Referenced by GeneralChart(), ~GeneralChart(), InitializeDistributions(), InitializeMCMCSamples(), PlotRegressionSet(), PlotVectorSet(), and PlotVectorSetSet().