SedSat3 1.1.6
Sediment Source Apportionment Tool - Advanced statistical methods for environmental pollution research
Loading...
Searching...
No Matches
ResultItem Class Reference

#include </home/runner/work/SedSat3/SedSat3/resultitem.h>

Inheritance diagram for ResultItem:
Inheritance graph
Collaboration diagram for ResultItem:
Collaboration graph

Public Member Functions

 ResultItem ()
Interface * Result () const
void SetResult (Interface *_result)
 ResultItem (const ResultItem &rhs)
ResultItem & operator= (const ResultItem &rhs)
void SetName (const string &_name)
string Name () const
void SetType (const result_type &_type)
result_type Type () const
void SetYAxisMode (yaxis_mode mode)
void SetXAxisMode (xaxis_mode mode)
yaxis_mode YAxisMode ()
xaxis_mode XAxisMode ()
void SetShowAsString (bool value)
bool ShowAsString () const
void setXAxisTitle (const string &title)
void setYAxisTitle (const string &title)
void setTableTitle (const string &Title)
string TableTitle ()
string XAxisTitle ()
string YAxisTitle ()
void SetAbsoluteValue (bool val)
bool AbsValue ()
double YLimit (_range highlow)
void SetYLimit (_range highlow, const double &value)
bool FixedYLimit ()
void SetShowTable (bool state)
bool ShowTable () const
void SetShowGraph (bool state)
bool ShowGraph () const
Public Member Functions inherited from Interface
 Interface ()
 Default constructor.
 Interface (const Interface &intf)
 Copy constructor.
Interface & operator= (const Interface &intf)
 Assignment operator.
virtual string ToString () const
 Convert object to string representation.
virtual QJsonObject toJsonObject () const
 Serialize object to JSON format.
virtual bool ReadFromJsonObject (const QJsonObject &jsonobject)
 Deserialize object from JSON format.
virtual bool writetofile (QFile *file)
 Write object data to a file.
virtual bool Read (const QStringList &strlist)
 Parse object data from a string list.
virtual QTableWidget * ToTable ()
 Create a Qt table widget representation of the data.
string GetNotes () const
 Get the notes/annotations associated with this object.
void SetNotes (const string &note)
 Set the notes for this object, replacing any existing notes.
void AppendtoNotes (const string &note)
 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.

Private Attributes

string name
result_type type {}
Interface * result = nullptr
yaxis_mode y_axis_mode = yaxis_mode::log
xaxis_mode x_axis_mode = xaxis_mode::real
bool showabsvalue = false
bool showasstring = true
vector< double > YLimits
bool fixYlimit = false
bool showTable = false
bool showGraph = true
string Table_Title

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.

Detailed Description

Definition at line 16 of file resultitem.h.

Constructor & Destructor Documentation

◆ ResultItem() [1/2]

ResultItem::ResultItem ( )

Definition at line 6 of file resultitem.cpp.

References Interface::Interface(), and YLimits.

Referenced by ResultItem(), and operator=().

◆ ResultItem() [2/2]

ResultItem::ResultItem ( const ResultItem & rhs)

Member Function Documentation

◆ AbsValue()

bool ResultItem::AbsValue ( )
inline

Definition at line 61 of file resultitem.h.

References showabsvalue.

◆ FixedYLimit()

bool ResultItem::FixedYLimit ( )
inline

Definition at line 77 of file resultitem.h.

References fixYlimit.

◆ Name()

◆ operator=()

ResultItem & ResultItem::operator= ( const ResultItem & rhs)

◆ Result()

◆ SetAbsoluteValue()

void ResultItem::SetAbsoluteValue ( bool val)
inline

◆ SetName()

void ResultItem::SetName ( const string & _name)
inline

Definition at line 24 of file resultitem.h.

References name.

Referenced by SourceSinkData::BootStrap(), Conductor::ExecuteANOVA(), Conductor::ExecuteAutoSelect(), Conductor::ExecuteBoxCox(), Conductor::ExecuteBracketingAnalysis(), Conductor::ExecuteBracketingAnalysisBatch(), Conductor::ExecuteCMBBayesianBatch(), Conductor::ExecuteCorrelationMatrix(), Conductor::ExecuteCovarianceMatrix(), Conductor::ExecuteDFA(), Conductor::ExecuteDFAM(), Conductor::ExecuteDFAOnevsRest(), Conductor::ExecuteDistributionFitting(), Conductor::ExecuteEDP(), Conductor::ExecuteEDPM(), Conductor::ExecuteKolmogorovSmirnov(), Conductor::ExecuteKolmogorovSmirnovIndividual(), Conductor::ExecuteLevenbergMarquardtBatch(), Conductor::ExecuteOutlierAnalysis(), Conductor::ExecuteSDFA(), Conductor::ExecuteSDFAM(), Conductor::ExecuteSDFAOnevsRest(), Conductor::ExecuteSourceVerify(), Conductor::ExecuteTestCMBBayesian(), SourceSinkData::GetCalculatedElementMeans(), SourceSinkData::GetCalculatedElementMu(), SourceSinkData::GetCalculatedElementSigma(), SourceSinkData::GetContribution(), SourceSinkData::GetEstimatedElementMean(), SourceSinkData::GetEstimatedElementMu(), SourceSinkData::GetEstimatedElementSigma(), SourceSinkData::GetMLRResults(), SourceSinkData::GetObservedElementalProfile(), SourceSinkData::GetObservedElementalProfile_Isotope(), SourceSinkData::GetObservedvsModeledElementalProfile(), SourceSinkData::GetObservedvsModeledElementalProfile_Isotope(), SourceSinkData::GetPredictedElementalProfile(), SourceSinkData::GetPredictedElementalProfile_Isotope(), SourceSinkData::GetSourceProfiles(), SourceSinkData::MCMC(), and Results::ReadFromJson().

◆ SetResult()

void ResultItem::SetResult ( Interface * _result)
inline

Definition at line 21 of file resultitem.h.

References Interface::Interface(), and result.

Referenced by SourceSinkData::BootStrap(), Conductor::ExecuteANOVA(), Conductor::ExecuteAutoSelect(), Conductor::ExecuteBoxCox(), Conductor::ExecuteBracketingAnalysis(), Conductor::ExecuteBracketingAnalysisBatch(), Conductor::ExecuteCMBBayesianBatch(), Conductor::ExecuteCorrelationMatrix(), Conductor::ExecuteCovarianceMatrix(), Conductor::ExecuteDFA(), Conductor::ExecuteDFAM(), Conductor::ExecuteDFAOnevsRest(), Conductor::ExecuteDistributionFitting(), Conductor::ExecuteEDP(), Conductor::ExecuteEDPM(), Conductor::ExecuteKolmogorovSmirnov(), Conductor::ExecuteKolmogorovSmirnovIndividual(), Conductor::ExecuteLevenbergMarquardtBatch(), Conductor::ExecuteOutlierAnalysis(), Conductor::ExecuteSDFA(), Conductor::ExecuteSDFAM(), Conductor::ExecuteSDFAOnevsRest(), Conductor::ExecuteSourceVerify(), Conductor::ExecuteTestCMBBayesian(), SourceSinkData::GetCalculatedElementMeans(), SourceSinkData::GetCalculatedElementMu(), SourceSinkData::GetCalculatedElementSigma(), SourceSinkData::GetContribution(), SourceSinkData::GetEstimatedElementMean(), SourceSinkData::GetEstimatedElementMu(), SourceSinkData::GetEstimatedElementSigma(), SourceSinkData::GetObservedElementalProfile(), SourceSinkData::GetObservedElementalProfile_Isotope(), SourceSinkData::GetObservedvsModeledElementalProfile(), SourceSinkData::GetObservedvsModeledElementalProfile_Isotope(), SourceSinkData::GetPredictedElementalProfile(), SourceSinkData::GetPredictedElementalProfile_Isotope(), Elemental_Profile_Set::GetRegressionsAsResult(), SourceSinkData::GetSourceProfiles(), SourceSinkData::MCMC(), and Results::ReadFromJson().

◆ SetShowAsString()

◆ SetShowGraph()

◆ SetShowTable()

◆ setTableTitle()

void ResultItem::setTableTitle ( const string & Title)
inline

Definition at line 50 of file resultitem.h.

References Table_Title.

Referenced by Conductor::ExecuteCorrelationMatrix(), and Conductor::ExecuteSDFAM().

◆ SetType()

void ResultItem::SetType ( const result_type & _type)
inline

Definition at line 26 of file resultitem.h.

References type.

Referenced by SourceSinkData::BootStrap(), Conductor::ExecuteANOVA(), Conductor::ExecuteAutoSelect(), Conductor::ExecuteBoxCox(), Conductor::ExecuteBracketingAnalysis(), Conductor::ExecuteBracketingAnalysisBatch(), Conductor::ExecuteCMBBayesianBatch(), Conductor::ExecuteCorrelationMatrix(), Conductor::ExecuteCovarianceMatrix(), Conductor::ExecuteDFA(), Conductor::ExecuteDFAM(), Conductor::ExecuteDFAOnevsRest(), Conductor::ExecuteDistributionFitting(), Conductor::ExecuteEDP(), Conductor::ExecuteEDPM(), Conductor::ExecuteKolmogorovSmirnov(), Conductor::ExecuteKolmogorovSmirnovIndividual(), Conductor::ExecuteLevenbergMarquardtBatch(), Conductor::ExecuteOutlierAnalysis(), Conductor::ExecuteSDFA(), Conductor::ExecuteSDFAM(), Conductor::ExecuteSDFAOnevsRest(), Conductor::ExecuteSourceVerify(), Conductor::ExecuteTestCMBBayesian(), SourceSinkData::GetCalculatedElementMeans(), SourceSinkData::GetCalculatedElementMu(), SourceSinkData::GetCalculatedElementSigma(), SourceSinkData::GetContribution(), SourceSinkData::GetEstimatedElementMean(), SourceSinkData::GetEstimatedElementMu(), SourceSinkData::GetEstimatedElementSigma(), SourceSinkData::GetObservedElementalProfile(), SourceSinkData::GetObservedElementalProfile_Isotope(), SourceSinkData::GetObservedvsModeledElementalProfile(), SourceSinkData::GetObservedvsModeledElementalProfile_Isotope(), SourceSinkData::GetPredictedElementalProfile(), SourceSinkData::GetPredictedElementalProfile_Isotope(), Elemental_Profile_Set::GetRegressionsAsResult(), SourceSinkData::GetSourceProfiles(), SourceSinkData::MCMC(), and Results::ReadFromJson().

◆ SetXAxisMode()

void ResultItem::SetXAxisMode ( xaxis_mode mode)
inline

◆ setXAxisTitle()

◆ SetYAxisMode()

◆ setYAxisTitle()

◆ SetYLimit()

◆ ShowAsString()

bool ResultItem::ShowAsString ( ) const
inline

Definition at line 33 of file resultitem.h.

References showasstring.

Referenced by ResultsWindow::AppendResult().

◆ ShowGraph()

bool ResultItem::ShowGraph ( ) const
inline

Definition at line 84 of file resultitem.h.

References showGraph.

Referenced by ResultsWindow::AppendResult().

◆ ShowTable()

bool ResultItem::ShowTable ( ) const
inline

Definition at line 82 of file resultitem.h.

References showTable.

Referenced by ResultsWindow::AppendResult().

◆ TableTitle()

string ResultItem::TableTitle ( )
inline

Definition at line 54 of file resultitem.h.

References Table_Title.

Referenced by ResultsWindow::on_result_table_clicked().

◆ Type()

result_type ResultItem::Type ( ) const
inline

Definition at line 27 of file resultitem.h.

References type.

Referenced by GeneralChart::Plot().

◆ XAxisMode()

xaxis_mode ResultItem::XAxisMode ( )
inline

Definition at line 31 of file resultitem.h.

References x_axis_mode.

◆ XAxisTitle()

string ResultItem::XAxisTitle ( )
inline

Definition at line 58 of file resultitem.h.

References Interface::XAxisLabel().

Referenced by GeneralChart::Plot().

◆ YAxisMode()

yaxis_mode ResultItem::YAxisMode ( )
inline

Definition at line 30 of file resultitem.h.

References y_axis_mode.

◆ YAxisTitle()

string ResultItem::YAxisTitle ( )
inline

Definition at line 59 of file resultitem.h.

References Interface::YAxisLabel().

Referenced by GeneralChart::Plot().

◆ YLimit()

double ResultItem::YLimit ( _range highlow)
inline

Definition at line 62 of file resultitem.h.

References high, and YLimits.

Member Data Documentation

◆ fixYlimit

bool ResultItem::fixYlimit = false
private

Definition at line 94 of file resultitem.h.

Referenced by ResultItem(), FixedYLimit(), operator=(), and SetYLimit().

◆ name

string ResultItem::name
private

Definition at line 86 of file resultitem.h.

Referenced by ResultItem(), Name(), operator=(), and SetName().

◆ result

Interface* ResultItem::result = nullptr
private

Definition at line 88 of file resultitem.h.

Referenced by ResultItem(), operator=(), Result(), SetResult(), setXAxisTitle(), and setYAxisTitle().

◆ showabsvalue

bool ResultItem::showabsvalue = false
private

Definition at line 91 of file resultitem.h.

Referenced by ResultItem(), AbsValue(), operator=(), and SetAbsoluteValue().

◆ showasstring

bool ResultItem::showasstring = true
private

Definition at line 92 of file resultitem.h.

Referenced by ResultItem(), operator=(), SetShowAsString(), and ShowAsString().

◆ showGraph

bool ResultItem::showGraph = true
private

Definition at line 96 of file resultitem.h.

Referenced by ResultItem(), operator=(), SetShowGraph(), and ShowGraph().

◆ showTable

bool ResultItem::showTable = false
private

Definition at line 95 of file resultitem.h.

Referenced by ResultItem(), operator=(), SetShowTable(), and ShowTable().

◆ Table_Title

string ResultItem::Table_Title
private

Definition at line 97 of file resultitem.h.

Referenced by setTableTitle(), and TableTitle().

◆ type

result_type ResultItem::type {}
private

Definition at line 87 of file resultitem.h.

Referenced by ResultItem(), operator=(), SetType(), and Type().

◆ x_axis_mode

xaxis_mode ResultItem::x_axis_mode = xaxis_mode::real
private

Definition at line 90 of file resultitem.h.

Referenced by ResultItem(), operator=(), SetXAxisMode(), and XAxisMode().

◆ y_axis_mode

yaxis_mode ResultItem::y_axis_mode = yaxis_mode::log
private

Definition at line 89 of file resultitem.h.

Referenced by ResultItem(), operator=(), SetYAxisMode(), and YAxisMode().

◆ YLimits

vector<double> ResultItem::YLimits
private

Definition at line 93 of file resultitem.h.

Referenced by ResultItem(), ResultItem(), operator=(), SetYLimit(), and YLimit().


The documentation for this class was generated from the following files: