#include <QGraphStatWidget.h>
Base class to make graphes in the stat tab of the node widget TODO add gnuplot export
Protected Attributes | |
simulation::Node * | m_node |
pointer to the node monitored More... | |
int | m_bufferSize |
size of the buffers to stored More... | |
QChart * | m_chart |
Pointer to the chart Data. More... | |
std::vector< QLineSeries * > | m_curves |
vector of series to be ploted More... | |
QValueAxis * | m_axisX |
x axis pointer More... | |
QValueAxis * | m_axisY |
y axis pointer More... | |
SReal | m_yMin |
min y axis value stored More... | |
SReal | m_yMax |
max y axis value stored More... | |
SReal | m_lastTime |
last timestep monitored More... | |
int | m_cptStep |
step counter monitored More... | |
Public Member Functions | |
QGraphStatWidget (QWidget *parent, simulation::Node *node, const QString &title, unsigned numberOfCurves, int bufferSize) | |
virtual | ~QGraphStatWidget () |
virtual void | step () final |
Main method called to update the graph. More... | |
virtual void | stepImpl ()=0 |
the only function that should be overloaded More... | |
Protected Member Functions | |
void | setCurve (unsigned index, const QString &name, const QColor &color) |
set the index-th curve (index must be < _numberOfCurves) More... | |
void | updateYAxisBounds (SReal value) |
Method to update Y axis scale. More... | |
void | flushSeries () |
flush data from series not anymore displayed More... | |
|
protected |
x axis pointer
|
protected |
y axis pointer
|
protected |
size of the buffers to stored
|
protected |
Pointer to the chart Data.
|
protected |
step counter monitored
|
protected |
vector of series to be ploted
|
protected |
last timestep monitored
|
protected |
pointer to the node monitored
|
protected |
max y axis value stored
|
protected |
min y axis value stored
sofa::gui::qt::QGraphStatWidget::QGraphStatWidget | ( | QWidget * | parent, |
simulation::Node * | node, | ||
const QString & | title, | ||
unsigned | numberOfCurves, | ||
int | bufferSize | ||
) |
|
virtual |
|
protected |
flush data from series not anymore displayed
|
protected |
set the index-th curve (index must be < _numberOfCurves)
|
finalvirtual |
Main method called to update the graph.
|
pure virtual |
the only function that should be overloaded
Implemented in sofa::gui::qt::QMomentumStatWidget, and sofa::gui::qt::QEnergyStatWidget.
|
protected |
Method to update Y axis scale.