YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
PlotManager Class Reference

The Manager of the plotters. More...

#include </home/runner/work/yarp-documentation/yarp-documentation/yarp/src/guis/yarpscope/plugin/plotmanager.h>

+ Inheritance diagram for PlotManager:

Public Slots

void onTimeout ()
 Timeout of the refresh timer.
 

Signals

void requestRepaint ()
 
void plottersChanged ()
 

Public Member Functions

 PlotManager (QObject *parent=0)
 
 ~PlotManager ()
 
PlotteraddPlot (const QString &title, int gridx, int gridy, int hspan, int vspan, float minval, float maxval, int size, const QString &bgcolor, bool autorescale)
 Adds a new Plotter.
 
QList< QObject * > * getPlotters ()
 Returns a list of all plotters.
 
void setInterval (int interval)
 Sets the refresh interval.
 
void setMainCustomPlot (QCustomPlot *)
 
void playPressed (bool check)
 Sets the play or pause state.
 
void clear ()
 Clear all plotters datas.
 
void rescale ()
 Rescale all plotters.
 

Static Public Member Functions

static PlotManagerinstance ()
 Returns an instance of the class (Singleton).
 

Detailed Description

The Manager of the plotters.

This class is used to manage the various plotters

Definition at line 18 of file plotmanager.h.

Constructor & Destructor Documentation

◆ PlotManager()

PlotManager::PlotManager ( QObject *  parent = 0)
explicit

Definition at line 8 of file plotmanager.cpp.

◆ ~PlotManager()

PlotManager::~PlotManager ( )

Definition at line 15 of file plotmanager.cpp.

Member Function Documentation

◆ addPlot()

Plotter * PlotManager::addPlot ( const QString &  title,
int  gridx,
int  gridy,
int  hspan,
int  vspan,
float  minval,
float  maxval,
int  size,
const QString &  bgcolor,
bool  autorescale 
)

Adds a new Plotter.

Parameters
titlethe title of the plotter
gridxthe x pos in the grid
gridythe y pos in the grid
hspanthe horizonatl span
vspanthe vertical span
minvalthe minimum scale value
maxvalthe maximium scale value
sizenumber of sample of datas in plotter
bgcolorthe background color of the plotter
autorescalenot used

Definition at line 52 of file plotmanager.cpp.

◆ clear()

void PlotManager::clear ( )

Clear all plotters datas.

Definition at line 108 of file plotmanager.cpp.

◆ getPlotters()

QList< QObject * > * PlotManager::getPlotters ( )

Returns a list of all plotters.

Definition at line 35 of file plotmanager.cpp.

◆ instance()

PlotManager * PlotManager::instance ( )
static

Returns an instance of the class (Singleton).

Definition at line 28 of file plotmanager.cpp.

◆ onTimeout

void PlotManager::onTimeout ( )
slot

Timeout of the refresh timer.

Definition at line 86 of file plotmanager.cpp.

◆ playPressed()

void PlotManager::playPressed ( bool  check)

Sets the play or pause state.

Parameters
check

Definition at line 98 of file plotmanager.cpp.

◆ plottersChanged

void PlotManager::plottersChanged ( )
signal

◆ requestRepaint

void PlotManager::requestRepaint ( )
signal

◆ rescale()

void PlotManager::rescale ( )

Rescale all plotters.

Definition at line 116 of file plotmanager.cpp.

◆ setInterval()

void PlotManager::setInterval ( int  interval)

Sets the refresh interval.

Parameters
intervalthe interval

Definition at line 76 of file plotmanager.cpp.

◆ setMainCustomPlot()

void PlotManager::setMainCustomPlot ( QCustomPlot *  )

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