14#include <qcustomplot.h>
16#define GRAPH_TYPE_LINE 0
17#define GRAPH_TYPE_BARS 1
18#define GRAPH_TYPE_POINTS 2
31 Graph(
int index, QString title,QString color,QString type,
int size,
double graph_y_scale,
int buffer_size,QObject *parent = 0);
33 void init(QString remotePortName,
34 QString localPortName,
69 qint64 numberAcquiredData;
129 QObject *parent = 0);
131 Graph *
addGraph(QString remotePort, QString localPort,
int index, QString
title, QString color, QString type,
int size,
double graph_y_scale=1.0);
Class representing a Connection.
yarp::os::ContactStyle style
yarp::os::BufferedPort< yarp::os::Bottle > * localPort
void connect(const yarp::os::ContactStyle &style)
Connect local port to remote port.
Class representing a Graph.
void init(QString remotePortName, QString localPortName, QString carrier, bool persistent)
QCPGraph * customGraphPoint
int getLineSize()
Return tickness of the graph.
void setCustomGraphPoint(QCPGraph *)
Sets the Custom Graph Point from the QCustomPlot class to this graph.
Connection * getConnection()
void setCustomGraph(QCPGraph *)
Sets the Custom Graph from the QCustomPlot class to this graph.
void appendPreviousValues()
Append the previous values acquired.
void clearData()
Clears the custom graph datas.
void appendValues(float y, float t)
Append the new values acquired.
int getType()
Return the graph type.
void acquiredDataChanged()
QString getColor()
Return color of the grpah.
Connection * curr_connection
Class representing a Plotter.
void rescale()
Rescales the plotter and its graphs.
void duplicateLastGraphValue(int graphIndex)
Graph * addGraph(QString remotePort, QString localPort, int index, QString title, QString color, QString type, int size, double graph_y_scale=1.0)
Add a Graph to the current Plotter.
void setPaintGeometry(QRectF)
Sets the paint geometry for this Plotter.
void plotSampleSizeChanged()
void internalAppendGraph(int index, QString title, QString color, QString type, int size, int buffer_size)
QList< QObject * > graphList
void onTimeout()
Timeout on which the data is acquired.
void clear()
Clears the graphs data.
void onInteract()
Sets the interaction mode to true.
A mini-server for performing network communication in the background.