QtRocket
 
Loading...
Searching...
No Matches
Plotter Class Referenceabstract

Abstract interface for plotting flight data. More...

#include <Plotter.h>

Inheritance diagram for Plotter:

Public Member Functions

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
 Plot a 2D line graph.
 
virtual void addMarker (double xValue, const std::string &label)=0
 Add a vertical marker at a specific x-axis value.
 
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.
 

Detailed Description

Abstract interface for plotting flight data.

Constructor & Destructor Documentation

◆ ~Plotter()

virtual Plotter::~Plotter ( )
virtualdefault

Member Function Documentation

◆ addMarker()

virtual void Plotter::addMarker ( double xValue,
const std::string & label )
pure virtual

Add a vertical marker at a specific x-axis value.

Parameters
xValueThe x position (e.g., time in seconds)
labelText label to display near the marker

Implemented in MatplotlibPlotter.

◆ plot2D()

virtual void Plotter::plot2D ( const std::vector< double > & xData,
const std::vector< double > & yData,
const std::string & title,
const std::string & xLabel,
const std::string & yLabel )
pure virtual

Plot a 2D line graph.

Parameters
xDataVector of x-axis values (e.g., time)
yDataVector of y-axis values (e.g., altitude)
titlePlot title
xLabelLabel for x-axis
yLabelLabel for y-axis

Implemented in MatplotlibPlotter.

◆ plotPosVelAcc()

virtual void Plotter::plotPosVelAcc ( const std::vector< double > & time,
const std::vector< double > & altitude,
const std::vector< double > & velocity,
const std::vector< double > & acceleration )
pure virtual

Plot altitude, velocity, and acceleration together on a single canvas.

Parameters
timeTime points
altitudeAltitude (Z position)
velocityVertical velocity
accelerationVertical acceleration

Implemented in MatplotlibPlotter.


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