Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
correlation::app::PlotTableFormatter Class Reference

Stateless utility transforming Histogram data into Slint tabular models. More...

#include <PlotTableFormatter.hpp>

Static Public Member Functions

static std::vector< std::string > extractSortedPartialKeys (const correlation::analysis::Histogram *hist)
 Extracts sorted partial curve keys from a histogram, placing 'Total' first if present.
static PlotTableModel formatTable (const correlation::analysis::Histogram *hist)
 Formats histogram bins and partial distributions into Slint table models.

Detailed Description

Stateless utility transforming Histogram data into Slint tabular models.

Member Function Documentation

◆ extractSortedPartialKeys()

std::vector< std::string > correlation::app::PlotTableFormatter::extractSortedPartialKeys ( const correlation::analysis::Histogram * hist)
staticnodiscard

Extracts sorted partial curve keys from a histogram, placing 'Total' first if present.

Parameters
[in]histPointer to the analytical histogram.
Returns
Ordered list of column keys for partials.
Here is the caller graph for this function:

◆ formatTable()

PlotTableModel correlation::app::PlotTableFormatter::formatTable ( const correlation::analysis::Histogram * hist)
staticnodiscard

Formats histogram bins and partial distributions into Slint table models.

Parameters
[in]histPointer to the analytical histogram.
Returns
Formatted PlotTableModel containing headers and rows.
Here is the call graph for this function:
Here is the caller graph for this function:

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