11 timer.setTimerType(Qt::PreciseTimer);
12 connect(&timer,
SIGNAL(timeout()),
this,SLOT(
onTimeout()),Qt::DirectConnection);
60 const QString &bgcolor,
63 auto* plotter =
new Plotter(title,gridx,gridy,hspan,vspan,minval,maxval,size,bgcolor,autorescale,
this);
64 plotterList.append(plotter);
66 emit plotter->plotSampleSizeChanged();
79 timer.setInterval(interval);
80 if (!timer.isActive()) {
88 int c = plotterList.count();
110 for(
int i=0;i<plotterList.count();i++){
118 for(
int i=0;i<plotterList.count();i++){
int SIGNAL(int pid, int signum)
The Manager of the plotters.
void playPressed(bool check)
Sets the play or pause state.
void setInterval(int interval)
Sets the refresh interval.
void clear()
Clear all plotters datas.
QList< QObject * > * getPlotters()
Returns a list of all plotters.
static PlotManager * instance()
Returns an instance of the class (Singleton).
Plotter * 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.
void onTimeout()
Timeout of the refresh timer.
PlotManager(QObject *parent=0)
void rescale()
Rescale all plotters.
Class representing a Plotter.