Adds accessors for plot data vectors

Adds const get methods to retrieve the x and y values stored in the plot data vectors, enabling external components to read the data displayed on the plot.
This commit is contained in:
2026-02-14 14:32:21 +01:00
parent f9c9636f95
commit a6f004725d
2 changed files with 12 additions and 0 deletions
+10
View File
@@ -50,6 +50,16 @@ void UI_plot::add_value(double x, double y)
emit ui_changed();
}
const std::vector<double> &UI_plot::x_vals() const
{
return m_x_vals;
}
const std::vector<double> &UI_plot::y_vals() const
{
return m_y_vals;
}
void UI_plot::clean_vals()
{
m_x_vals.clear();