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

Stores and formats vertical (+X) and horizontal (+Y) reference inspection markers. More...

#include <PlotMarkerManager.hpp>

Public Member Functions

 PlotMarkerManager ()=default
 Constructs an empty PlotMarkerManager.
void addMarker (real_t value, bool is_vertical)
 Adds a reference guideline marker at the specified data coordinate.
void clearMarkers () noexcept
 Clears all inspection reference markers.
std::size_t markersCount () const noexcept
 Returns the total number of placed reference markers.
std::span< const correlation::plotters::ReferenceLine > markers () const noexcept
 Returns a read-only view of all active reference markers.
void applyToConfig (correlation::plotters::PlotConfig &config) const
 Populates reference markers into target PlotConfig.

Private Attributes

std::vector< correlation::plotters::ReferenceLine > markers_

Detailed Description

Stores and formats vertical (+X) and horizontal (+Y) reference inspection markers.

Constructor & Destructor Documentation

◆ PlotMarkerManager()

correlation::app::PlotMarkerManager::PlotMarkerManager ( )
default

Constructs an empty PlotMarkerManager.

Here is the call graph for this function:

Member Function Documentation

◆ addMarker()

void correlation::app::PlotMarkerManager::addMarker ( real_t value,
bool is_vertical )

Adds a reference guideline marker at the specified data coordinate.

Parameters
[in]valueData coordinate value.
[in]is_verticalTrue for vertical (+X) marker, false for horizontal (+Y) marker.

◆ applyToConfig()

void correlation::app::PlotMarkerManager::applyToConfig ( correlation::plotters::PlotConfig & config) const

Populates reference markers into target PlotConfig.

Parameters
[in,out]configPlot configuration to enrich.
Here is the caller graph for this function:

◆ clearMarkers()

void correlation::app::PlotMarkerManager::clearMarkers ( )
noexcept

Clears all inspection reference markers.

◆ markers()

std::span< const correlation::plotters::ReferenceLine > correlation::app::PlotMarkerManager::markers ( ) const
nodiscardnoexcept

Returns a read-only view of all active reference markers.

Returns
Contiguous span of ReferenceLine structures.
Here is the caller graph for this function:

◆ markersCount()

std::size_t correlation::app::PlotMarkerManager::markersCount ( ) const
nodiscardnoexcept

Returns the total number of placed reference markers.

Returns
Count of active markers.
Here is the caller graph for this function:

Member Data Documentation

◆ markers_

std::vector<correlation::plotters::ReferenceLine> correlation::app::PlotMarkerManager::markers_
private

The documentation for this class was generated from the following files: