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

Utility manager for generating Slint heatmap textures and exporting high-resolution PNGs. More...

#include <PhaseExportManager.hpp>

Public Member Functions

 PhaseExportManager ()=delete

Static Public Member Functions

static slint::Image renderHeatmapImage (const PhaseHeatmap2D &heatmap, plotters::ColormapType colormap)
 Rasterizes a 2D phase distribution heatmap to a Slint display image.
static bool exportHeatmapPng (const std::string &filepath, const PhaseHeatmap2D &heatmap, plotters::ColormapType colormap)
 Encodes and exports a 2D phase distribution heatmap as a PNG file.

Detailed Description

Utility manager for generating Slint heatmap textures and exporting high-resolution PNGs.

Constructor & Destructor Documentation

◆ PhaseExportManager()

correlation::app::PhaseExportManager::PhaseExportManager ( )
delete

Member Function Documentation

◆ exportHeatmapPng()

bool correlation::app::PhaseExportManager::exportHeatmapPng ( const std::string & filepath,
const PhaseHeatmap2D & heatmap,
plotters::ColormapType colormap )
staticnodiscard

Encodes and exports a 2D phase distribution heatmap as a PNG file.

Parameters
[in]filepathTarget destination filepath on disk.
[in]heatmap64x64 scalar joint distribution density map.
[in]colormapScientific colormap gradient for intensity mapping.
Returns
True if PNG file was written successfully, false on I/O or encoding error.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ renderHeatmapImage()

slint::Image correlation::app::PhaseExportManager::renderHeatmapImage ( const PhaseHeatmap2D & heatmap,
plotters::ColormapType colormap )
staticnodiscard

Rasterizes a 2D phase distribution heatmap to a Slint display image.

Parameters
[in]heatmap64x64 scalar joint distribution density map.
[in]colormapScientific colormap gradient for intensity mapping.
Returns
slint::Image containing 128x128 RGBA8 texture.
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: