|
SedSat3 1.1.6
Sediment Source Apportionment Tool - Advanced statistical methods for environmental pollution research
|
Time series data container with Interface support. More...
#include </home/runner/work/SedSat3/SedSat3/cmbtimeseries.h>


Public Member Functions | |
| CMBTimeSeries () | |
| Default constructor - creates an empty time series. | |
| CMBTimeSeries (int n) | |
| Constructs a time series with given capacity. | |
| CMBTimeSeries (const CMBTimeSeries &mp) | |
| Copy constructor. | |
| CMBTimeSeries & | operator= (const CMBTimeSeries &mp) |
| Assignment operator. | |
| QJsonObject | toJsonObject () const override |
| Serializes time series to JSON format. | |
| bool | ReadFromJsonObject (const QJsonObject &jsonobject) override |
| Deserializes time series from JSON format. | |
| string | ToString () const override |
| Converts time series to CSV-formatted string. | |
| bool | writetofile (QFile *) override |
| Writes time series to file. | |
| QTableWidget * | ToTable () override |
| Creates a QTableWidget for displaying time series data. | |
Public Member Functions inherited from Interface | |
| Interface () | |
| Default constructor. | |
| Interface (const Interface &intf) | |
| Copy constructor. | |
| Interface & | operator= (const Interface &intf) |
| Assignment operator. | |
| virtual bool | Read (const QStringList &strlist) |
| Parse object data from a string list. | |
| string | GetNotes () const |
| Get the notes/annotations associated with this object. | |
| void | SetNotes (const string ¬e) |
| Set the notes for this object, replacing any existing notes. | |
| void | AppendtoNotes (const string ¬e) |
| Append a note to existing notes. | |
| void | ClearNotes () |
| Clear all notes associated with this object. | |
| void | SetLimit (_range lowhigh, const double &value) |
| Set upper or lower limit for value highlighting. | |
| void | SetOption (options_key opt, bool val) |
| Set a configuration option. | |
| bool | Option (options_key opt) |
| Get the current value of a configuration option. | |
| options & | GetOptions () |
| Get reference to the options structure. | |
| QString | XAxisLabel () const |
| Get the X-axis label. | |
| QString | YAxisLabel () const |
| Get the Y-axis label. | |
| bool | SetXAxisLabel (const QString &label) |
| Set the X-axis label. | |
| bool | SetYAxisLabel (const QString &label) |
| Set the Y-axis label. | |
Additional Inherited Members | |
Public Attributes inherited from Interface | |
| double | lowlimit |
| Lower threshold for value highlighting (when enabled) | |
| double | highlimit |
| Upper threshold for value highlighting (when enabled) | |
| bool | highlightoutsideoflimit = false |
| Flag indicating whether to highlight values outside defined limits. | |
Time series data container with Interface support.
Extends TimeSeries<double> with JSON serialization, file I/O, and table widget generation. Used for storing time-indexed data such as concentration profiles or temporal distributions.
Definition at line 14 of file cmbtimeseries.h.
| CMBTimeSeries::CMBTimeSeries | ( | ) |
Default constructor - creates an empty time series.
Definition at line 6 of file cmbtimeseries.cpp.
| CMBTimeSeries::CMBTimeSeries | ( | int | n | ) |
Constructs a time series with given capacity.
| n | Initial capacity |
Definition at line 16 of file cmbtimeseries.cpp.
| CMBTimeSeries::CMBTimeSeries | ( | const CMBTimeSeries & | mp | ) |
Copy constructor.
| mp | Time series to copy from |
Definition at line 11 of file cmbtimeseries.cpp.
| CMBTimeSeries & CMBTimeSeries::operator= | ( | const CMBTimeSeries & | mp | ) |
Assignment operator.
| mp | Time series to assign from |
Definition at line 21 of file cmbtimeseries.cpp.
References operator=().
Referenced by operator=().
|
overridevirtual |
Deserializes time series from JSON format.
| jsonobject | JSON object to read from |
Reimplemented from Interface.
Definition at line 42 of file cmbtimeseries.cpp.
|
overridevirtual |
Serializes time series to JSON format.
Reimplemented from Interface.
Definition at line 26 of file cmbtimeseries.cpp.
|
overridevirtual |
Converts time series to CSV-formatted string.
Reimplemented from Interface.
Definition at line 48 of file cmbtimeseries.cpp.
Referenced by writetofile().
|
overridevirtual |
Creates a QTableWidget for displaying time series data.
Generates a single-column table with time values as row labels and values in the column. Highlights values outside limit range if highlighting is enabled.
Reimplemented from Interface.
Definition at line 65 of file cmbtimeseries.cpp.
References Interface::highlightoutsideoflimit, Interface::highlimit, and Interface::lowlimit.
|
overridevirtual |
Writes time series to file.
| file | File pointer to write to |
Reimplemented from Interface.
Definition at line 59 of file cmbtimeseries.cpp.
References ToString().