Loading...
Searching...
No Matches
Plotter.h
Go to the documentation of this file.
#ifndef PLOTTER_H
#define PLOTTER_H
#include <vector>
#include <string>
class Plotter {
public:
virtual ~Plotter() = default;
virtual void plot2D(const std::vector<double>& xData,
const std::vector<double>& yData,
const std::string& title,
const std::string& xLabel,
const std::string& yLabel) = 0;
virtual void addMarker(double xValue, const std::string& label) = 0;
virtual void plotPosVelAcc(const std::vector<double>& time,
const std::vector<double>& altitude,
const std::vector<double>& velocity,
const std::vector<double>& acceleration) = 0;
};
#endif // PLOTTER_H
Plotter
Abstract interface for plotting flight data.
Definition Plotter.h:9
Plotter::~Plotter
virtual ~Plotter()=default
Plotter::plotPosVelAcc
virtual void plotPosVelAcc(const std::vector< double > &time, const std::vector< double > &altitude, const std::vector< double > &velocity, const std::vector< double > &acceleration)=0
Plot altitude, velocity, and acceleration together on a single canvas.
Plotter::addMarker
virtual void addMarker(double xValue, const std::string &label)=0
Add a vertical marker at a specific x-axis value.
Plotter::plot2D
virtual void plot2D(const std::vector< double > &xData, const std::vector< double > &yData, const std::string &title, const std::string &xLabel, const std::string &yLabel)=0
Plot a 2D line graph.