Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
PlotMarkerManager.hpp
Go to the documentation of this file.
1
8
9#pragma once
10
12
13#include <span>
14#include <vector>
15
16namespace correlation::app {
17
23public:
27 PlotMarkerManager() = default;
28
34 void addMarker(real_t value, bool is_vertical);
35
39 void clearMarkers() noexcept;
40
45 [[nodiscard]] std::size_t markersCount() const noexcept;
46
51 [[nodiscard]] std::span<const correlation::plotters::ReferenceLine> markers() const noexcept;
52
57 void applyToConfig(correlation::plotters::PlotConfig &config) const;
58
59private:
60 std::vector<correlation::plotters::ReferenceLine> markers_;
61};
62
63} // namespace correlation::app
Facade header for zero-dependency SVG plotter.
PlotMarkerManager()=default
Constructs an empty PlotMarkerManager.
void addMarker(real_t value, bool is_vertical)
Adds a reference guideline marker at the specified data coordinate.
Definition PlotMarkerManager.cpp:16
std::size_t markersCount() const noexcept
Returns the total number of placed reference markers.
Definition PlotMarkerManager.cpp:30
std::span< const correlation::plotters::ReferenceLine > markers() const noexcept
Returns a read-only view of all active reference markers.
Definition PlotMarkerManager.cpp:32
std::vector< correlation::plotters::ReferenceLine > markers_
Definition PlotMarkerManager.hpp:60
void clearMarkers() noexcept
Clears all inspection reference markers.
Definition PlotMarkerManager.cpp:28
void applyToConfig(correlation::plotters::PlotConfig &config) const
Populates reference markers into target PlotConfig.
Definition PlotMarkerManager.cpp:36
Definition AppController.hpp:27
Definition ColormapService.hpp:18
Definition AnalysisTypes.hpp:11
double real_t
Definition Precision.hpp:18