30 std::map<std::string, correlation::analysis::Histogram>
86 [[nodiscard]]
bool isCurveVisible(
const std::string &key,
bool default_val =
true)
const;
107 [[nodiscard]]
const std::map<std::string, std::string> &
getCustomColors() const noexcept {
115 void pinCurrentRun(
const std::map<std::string, correlation::analysis::Histogram> &hists);
163 [[nodiscard]] std::shared_ptr<slint::VectorModel<CurveToggleItem>>
166 const std::map<std::string, real_t> &ashcroft_weights = {});
179 void reset() noexcept;
Manager for distribution function calculations (RDF, PAD, S(Q), etc.).
Common types, configuration structures, and palette/formatting utilities for SVG plotting.
const std::vector< PinnedRun > & getPinnedRuns() const noexcept
Retrieves all pinned comparison runs.
Definition PlotSeriesManager.hpp:126
PlotSeriesManager()=default
Default constructor.
std::map< std::string, bool > curve_visibility_map_
Definition PlotSeriesManager.hpp:182
std::vector< std::string > current_toggle_keys_
Definition PlotSeriesManager.hpp:185
std::map< std::string, std::string > assigned_curve_colors_
Definition PlotSeriesManager.hpp:184
const std::map< std::string, std::string > & getCustomColors() const noexcept
Retrieves the map of custom curve colors.
Definition PlotSeriesManager.hpp:107
void invertCurveVisibility(std::string_view filter="")
Inverts the visibility of curves. If a filter is specified or active, inverts only matching curves.
Definition PlotSeriesManager.cpp:259
void clearPinnedRuns() noexcept
Clears all pinned comparison runs.
Definition PlotSeriesManager.cpp:304
const std::map< std::string, std::string > & getAssignedCurveColors() const noexcept
Retrieves the active assigned colors for current histogram curves (defaults + custom).
Definition PlotSeriesManager.hpp:172
const std::map< std::string, bool > & getCurveVisibilityMap() const noexcept
Retrieves the complete curve visibility map.
Definition PlotSeriesManager.hpp:92
const std::vector< std::string > & getCurrentToggleKeys() const noexcept
Retrieves the currently ordered list of curve toggle keys.
Definition PlotSeriesManager.hpp:152
void setAllCurvesVisible(bool visible, std::string_view filter="")
Sets the visibility for all currently tracked toggle curves. If a filter is specified or active,...
Definition PlotSeriesManager.cpp:249
void setCustomColor(int curve_id, const std::string &color_hex)
Sets a custom hex color for a curve by its toggle index.
Definition PlotSeriesManager.cpp:282
void reset() noexcept
Resets all series state (visibility overrides, custom colors, pinned runs, and flags).
Definition PlotSeriesManager.cpp:306
void pinCurrentRun(const std::map< std::string, correlation::analysis::Histogram > &hists)
Pins the provided histogram dataset as a comparison overlay run.
Definition PlotSeriesManager.cpp:295
std::map< std::string, std::string > custom_curve_colors_
Definition PlotSeriesManager.hpp:183
std::string filter_text_
Definition PlotSeriesManager.hpp:187
std::shared_ptr< slint::VectorModel< CurveToggleItem > > generateToggleItems(const correlation::analysis::Histogram *hist, const correlation::plotters::PlotConfig &config, const std::map< std::string, real_t > &ashcroft_weights={})
Generates the Slint VectorModel of CurveToggleItem for UI presentation.
Definition PlotSeriesManager.cpp:317
bool shouldShowDifference() const noexcept
Queries whether the overlaid difference curve is visible.
Definition PlotSeriesManager.hpp:146
void setShowDifference(bool show) noexcept
Sets whether the overlaid difference curve Y_diff is shown.
Definition PlotSeriesManager.hpp:140
void setCurveVisible(int curve_id, bool visible)
Toggles the visibility of a curve by its toggle index.
Definition PlotSeriesManager.cpp:242
std::vector< PinnedRun > pinned_runs_
Definition PlotSeriesManager.hpp:186
size_t getPinnedRunsCount() const noexcept
Retrieves the count of pinned comparison runs.
Definition PlotSeriesManager.hpp:134
std::string_view getFilterText() const noexcept
Retrieves the active substring search filter.
Definition PlotSeriesManager.hpp:78
bool show_difference_curve_
Definition PlotSeriesManager.hpp:188
void setFilterText(std::string_view filter)
Sets the active substring search filter for curve toggles.
Definition PlotSeriesManager.cpp:270
bool isCurveVisible(const std::string &key, bool default_val=true) const
Checks if a specific curve key is visible.
Definition PlotSeriesManager.cpp:274
Definition AppController.hpp:27
Container for a single calculated distribution function.
Definition DistributionFunctions.hpp:226
Represents a snapshot of analytical histograms preserved for comparison overlay.
Definition PlotSeriesManager.hpp:28
std::string label
Identifier label for the run (e.g., "Run 1").
Definition PlotSeriesManager.hpp:29
std::map< std::string, correlation::analysis::Histogram > histograms
Map of plot name to histogram.
Definition PlotSeriesManager.hpp:31
Theme and layout configuration for the plot.
Definition PlotTypes.hpp:42