Class representing a Graph. More...
#include </home/runner/work/yarp-documentation/yarp-documentation/yarp/src/guis/yarpscope/plugin/plotter.h>
Signals | |
void | valuesChanged () |
void | acquiredDataChanged () |
Public Member Functions | |
Graph (int index, QString title, QString color, QString type, int size, double graph_y_scale, int buffer_size, QObject *parent=0) | |
~Graph () | |
void | init (QString remotePortName, QString localPortName, QString carrier, bool persistent) |
void | appendPreviousValues () |
Append the previous values acquired. | |
void | appendValues (float y, float t) |
Append the new values acquired. | |
void | setCustomGraphPoint (QCPGraph *) |
Sets the Custom Graph Point from the QCustomPlot class to this graph. | |
void | setCustomGraph (QCPGraph *) |
Sets the Custom Graph from the QCustomPlot class to this graph. | |
void | clearData () |
Clears the custom graph datas. | |
Connection * | getConnection () |
int | getType () |
Return the graph type. | |
QString | getColor () |
Return color of the grpah. | |
int | getLineSize () |
Return tickness of the graph. | |
Public Attributes | |
double | lastX |
double | lastY |
double | lastT |
bool | deleteConnection |
QCPGraph * | customGraphPoint |
QCPGraph * | customGraph |
int | index |
double | graph_y_scale |
Connection * | curr_connection |
Graph::Graph | ( | int | index, |
QString | title, | ||
QString | color, | ||
QString | type, | ||
int | size, | ||
double | graph_y_scale, | ||
int | buffer_size, | ||
QObject * | parent = 0 |
||
) |
Definition at line 246 of file plotter.cpp.
Graph::~Graph | ( | ) |
Definition at line 287 of file plotter.cpp.
|
signal |
void Graph::appendPreviousValues | ( | ) |
Append the previous values acquired.
Definition at line 329 of file plotter.cpp.
void Graph::appendValues | ( | float | y, |
float | t | ||
) |
Append the new values acquired.
Definition at line 335 of file plotter.cpp.
void Graph::clearData | ( | ) |
Clears the custom graph datas.
Definition at line 385 of file plotter.cpp.
QString Graph::getColor | ( | ) |
Return color of the grpah.
Definition at line 323 of file plotter.cpp.
Connection * Graph::getConnection | ( | ) |
Definition at line 295 of file plotter.cpp.
int Graph::getLineSize | ( | ) |
Return tickness of the graph.
Definition at line 317 of file plotter.cpp.
int Graph::getType | ( | ) |
Return the graph type.
Definition at line 301 of file plotter.cpp.
void Graph::init | ( | QString | remotePortName, |
QString | localPortName, | ||
QString | carrier, | ||
bool | persistent | ||
) |
Definition at line 267 of file plotter.cpp.
void Graph::setCustomGraph | ( | QCPGraph * | g | ) |
Sets the Custom Graph from the QCustomPlot class to this graph.
g | the Custom Graph |
Definition at line 370 of file plotter.cpp.
void Graph::setCustomGraphPoint | ( | QCPGraph * | g | ) |
Sets the Custom Graph Point from the QCustomPlot class to this graph.
g | the Custom Graph |
Definition at line 378 of file plotter.cpp.
|
signal |
Connection* Graph::curr_connection |