Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
PlotExportService.hpp
Go to the documentation of this file.
1
8
9#pragma once
10
13
14#include <expected>
15#include <map>
16#include <span>
17#include <string>
18
19namespace correlation::app {
20
26public:
33 [[nodiscard]] static std::string getComparisonKey(const correlation::analysis::Histogram *hist);
34
43 [[nodiscard]] static std::expected<void, std::string>
44 exportHistogram(const std::string &filepath, const correlation::analysis::Histogram &hist,
46 const std::map<std::string, real_t> &ashcroft_weights = {});
47
56 [[nodiscard]] static std::expected<void, std::string>
57 exportComparison(const std::string &filepath,
58 std::span<const correlation::plotters::LabeledHistogram> datasets,
59 const std::string &comparison_key,
61};
62
63} // namespace correlation::app
Manager for distribution function calculations (RDF, PAD, S(Q), etc.).
Facade header for zero-dependency SVG plotter.
Stateless service executing plot file exports decoupled from UI frameworks.
Definition PlotExportService.hpp:25
static std::expected< void, std::string > exportHistogram(const std::string &filepath, const correlation::analysis::Histogram &hist, const correlation::plotters::PlotConfig &config, const std::map< std::string, real_t > &ashcroft_weights={})
Exports a single histogram plot to file (SVG or PDF).
Definition PlotExportService.cpp:55
static std::expected< void, std::string > exportComparison(const std::string &filepath, std::span< const correlation::plotters::LabeledHistogram > datasets, const std::string &comparison_key, const correlation::plotters::PlotConfig &config)
Exports a comparison overlay plot to file (SVG or PDF).
Definition PlotExportService.cpp:73
static std::string getComparisonKey(const correlation::analysis::Histogram *hist)
Determines the comparison curve key for a given histogram (e.g. "Total" or first partial).
Definition PlotExportService.cpp:43
Definition AppController.hpp:27
Container for a single calculated distribution function.
Definition DistributionFunctions.hpp:226
Theme and layout configuration for the plot.
Definition PlotTypes.hpp:42