![]() |
University of Murcia, Spain ![]() |
QVHistogramPlot Class ReferenceWidget for plotting QList<double> property values from a worker, as an histogram, over the time.
More...
|
Public Member Functions | |
QVHistogramPlot (const QString name=QString(), bool time=true, int step=10, double maxim=0, double minim=0, QWidget *parent=0) | |
Constructs a QVHistogramPlot with a given string identifier, and a iteration's parameters. Construct a new plot that shows QList<double> properties graphs as an histogram graph. This plot shows decorations, it hasn't got a pie graph, don't brush the data and autoshow. It can show graphs of QList<double> linked properties of different workers. | |
bool | linkProperty (QVWorker &worker, const QString propertyName) |
Links properties from workers. This method safely links properties from workers in a thread safe manner. If the iterations are based on worker's iterations (time == false), the worker must be synchronised with previous linked workers. Only can be linked QList<double> properties. |
This class creates a widget which plots an array of values as a bin histogram function:
For further information about its usage and functionallity see section Histogram plot widget
Definition at line 49 of file qvhistogramplot.h.
QVHistogramPlot::QVHistogramPlot | ( | const QString | name = QString () , |
|
bool | time = true , |
|||
int | step = 10 , |
|||
double | maxim = 0 , |
|||
double | minim = 0 , |
|||
QWidget * | parent = 0 | |||
) |
Constructs a QVHistogramPlot with a given string identifier, and a iteration's parameters. Construct a new plot that shows QList<double> properties graphs as an histogram graph. This plot shows decorations, it hasn't got a pie graph, don't brush the data and autoshow. It can show graphs of QList<double> linked properties of different workers.
name | Identifier for the object to be created. | |
time | True if the iterations are based on clock time (in second hundredths), and false if they are based on worker's iterations. | |
step | Set the base measure to plot's iterations ratio. | |
maxim | The left axis maximum value shown, if it is 0, the maximum value is auto scale. | |
minim | The left axis minimum value shown, it must be less than maximum value. | |
parent | Identifier for the parent widget. |
Definition at line 35 of file qvhistogramplot.cpp.
bool QVHistogramPlot::linkProperty | ( | QVWorker & | worker, | |
const QString | propertyName | |||
) |
Links properties from workers. This method safely links properties from workers in a thread safe manner. If the iterations are based on worker's iterations (time == false), the worker must be synchronised with previous linked workers. Only can be linked QList<double> properties.
See also QVPropertyContainer::LinkType.
worker | The source QVWorker. | |
propertyName | Identifying QString for the source property. |
Definition at line 45 of file qvhistogramplot.cpp.