|
Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
|
High-performance 2D software renderer for distribution mini-charts. More...
#include <MiniPlotRenderer.hpp>
Static Public Member Functions | |
| static PlotImageBuffer | render (const analysis::MetricCurveData &metric_data, std::optional< std::size_t > frame_idx, uint32_t width, uint32_t height) |
| Renders a 2D mini distribution plot into an RGBA pixel buffer with default configuration. | |
| static PlotImageBuffer | render (const analysis::MetricCurveData &metric_data, std::optional< std::size_t > frame_idx=std::nullopt, const MiniPlotConfig &config=MiniPlotConfig(), uint32_t width=K_DEFAULT_WIDTH, uint32_t height=K_DEFAULT_HEIGHT) |
| Renders a 2D mini distribution plot into an RGBA pixel buffer with custom configuration. | |
| static PeakInfo | findPeak (std::span< const real_t > bins, std::span< const real_t > values) noexcept |
| Finds the primary local maximum peak in a 1D curve. | |
Static Public Attributes | |
| static constexpr uint32_t | K_DEFAULT_WIDTH = 260 |
| Default canvas width (px). | |
| static constexpr uint32_t | K_DEFAULT_HEIGHT = 130 |
| Default canvas height (px). | |
High-performance 2D software renderer for distribution mini-charts.
Employs zero-allocation drawing routines to produce anti-aliased distribution curves, overlays of current-frame vs ensemble mean, and peak markers in sub-millisecond execution.
|
staticnodiscardnoexcept |
Finds the primary local maximum peak in a 1D curve.
| [in] | bins | X coordinates. |
| [in] | values | Y coordinates. |

|
inlinestaticnodiscard |
Renders a 2D mini distribution plot into an RGBA pixel buffer with default configuration.
| [in] | metric_data | Metric dataset containing bins, mean curve, and per-frame curves. |
| [in] | frame_idx | Optional frame index to render on top of the mean. |
| [in] | width | Target canvas width in pixels. |
| [in] | height | Target canvas height in pixels. |


|
staticnodiscard |
Renders a 2D mini distribution plot into an RGBA pixel buffer with custom configuration.
| [in] | metric_data | Metric dataset containing bins, mean curve, and per-frame curves. |
| [in] | frame_idx | Optional frame index to render on top of the mean. |
| [in] | config | Custom mini plot bounds and scale configuration. |
| [in] | width | Target canvas width in pixels. |
| [in] | height | Target canvas height in pixels. |

|
staticconstexpr |
Default canvas height (px).
|
staticconstexpr |
Default canvas width (px).