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

Class representing a Graph. More...

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

+ Inheritance diagram for Graph:

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.
 
ConnectiongetConnection ()
 
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
 
Connectioncurr_connection
 

Detailed Description

Class representing a Graph.

Definition at line 25 of file plotter.h.

Constructor & Destructor Documentation

◆ Graph()

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::~Graph ( )

Definition at line 287 of file plotter.cpp.

Member Function Documentation

◆ acquiredDataChanged

void Graph::acquiredDataChanged ( )
signal

◆ appendPreviousValues()

void Graph::appendPreviousValues ( )

Append the previous values acquired.

Definition at line 329 of file plotter.cpp.

◆ appendValues()

void Graph::appendValues ( float  y,
float  t 
)

Append the new values acquired.

Definition at line 335 of file plotter.cpp.

◆ clearData()

void Graph::clearData ( )

Clears the custom graph datas.

Definition at line 385 of file plotter.cpp.

◆ getColor()

QString Graph::getColor ( )

Return color of the grpah.

Definition at line 323 of file plotter.cpp.

◆ getConnection()

Connection * Graph::getConnection ( )

Definition at line 295 of file plotter.cpp.

◆ getLineSize()

int Graph::getLineSize ( )

Return tickness of the graph.

Definition at line 317 of file plotter.cpp.

◆ getType()

int Graph::getType ( )

Return the graph type.

Definition at line 301 of file plotter.cpp.

◆ init()

void Graph::init ( QString  remotePortName,
QString  localPortName,
QString  carrier,
bool  persistent 
)

Definition at line 267 of file plotter.cpp.

◆ setCustomGraph()

void Graph::setCustomGraph ( QCPGraph *  g)

Sets the Custom Graph from the QCustomPlot class to this graph.

Parameters
gthe Custom Graph

Definition at line 370 of file plotter.cpp.

◆ setCustomGraphPoint()

void Graph::setCustomGraphPoint ( QCPGraph *  g)

Sets the Custom Graph Point from the QCustomPlot class to this graph.

Parameters
gthe Custom Graph

Definition at line 378 of file plotter.cpp.

◆ valuesChanged

void Graph::valuesChanged ( )
signal

Member Data Documentation

◆ curr_connection

Connection* Graph::curr_connection

Definition at line 64 of file plotter.h.

◆ customGraph

QCPGraph* Graph::customGraph

Definition at line 59 of file plotter.h.

◆ customGraphPoint

QCPGraph* Graph::customGraphPoint

Definition at line 58 of file plotter.h.

◆ deleteConnection

bool Graph::deleteConnection

Definition at line 56 of file plotter.h.

◆ graph_y_scale

double Graph::graph_y_scale

Definition at line 62 of file plotter.h.

◆ index

int Graph::index

Definition at line 61 of file plotter.h.

◆ lastT

double Graph::lastT

Definition at line 50 of file plotter.h.

◆ lastX

double Graph::lastX

Definition at line 48 of file plotter.h.

◆ lastY

double Graph::lastY

Definition at line 49 of file plotter.h.


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