AudiClean
Public Member Functions | List of all members
Plotter Class Reference

#include <Plotter.h>

Inheritance diagram for Plotter:
Inheritance graph
Collaboration diagram for Plotter:
Collaboration graph

Public Member Functions

void NextSample (double next)
 
 Plotter (std::string _winname, int _bsize, int _w, int _h, double _framerate_fps)
 
void Init ()
 
void Show ()
 

Additional Inherited Members

Detailed Description

A pipeline element which provides the facility to plot samples passing into it using a dynamic plot window. Refresh rate, window size and window name may be set using the constructor.

Constructor & Destructor Documentation

◆ Plotter()

Plotter::Plotter ( std::string  _winname,
int  _bsize,
int  _w,
int  _h,
double  _framerate_fps 
)

Constructor for Plotter

Parameters
_winnamethe text window name for this dynamic plot
_bsizethe internal ring buffer size desired
_wdesired width of the window
_hdesired height of the window
_framerate_fpsdesired refreshrate of the window (maxiumum)

Member Function Documentation

◆ Init()

void Plotter::Init ( )

Initialises the window, must be called before Show()

◆ NextSample()

void Plotter::NextSample ( double  next)
virtual

Callback function for Plotter. This will add the sample to an internal ring buffer, plot the sample on the internal cv::Mat and callback the next pipeline element with the sample

Parameters
next

Implements SampleCallback.

◆ Show()

void Plotter::Show ( )

Shows the latest version of the internal cv::Mat


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