PARP Research Group University of Murcia, Spain


QVCPUPlot Class Reference
[Graphical User Interface]

Class for plot graphs of worker's cpustat properties. More...

#include <qvgui/qvcpuplot.h>


Detailed Description

Class for plot graphs of worker's cpustat properties.

This class lets us plot graphs for QVStat worker's output properties. Each QVWorker object is created with a property containing a stat object, resuming its time consumption and internal statistics. The class QVCPUPlot can be used to plot those time statistics.

The following code features how to create a CPU plot object in a QVision application:

void main()
        {
        [...]
        ComponentTreeWorker componentTreeWorker("Component Tree");
        CannyWorker cannyWorker("Canny operator");
        ContourPainter contourPainter("Contour painter");
        [...]
        QVCPUPlot cpuPlot("CPU Plot", true, 10);
        componentTreeWorker.linkProperty("cpu stats", cpuPlot);
        cannyWorker.linkProperty("cpu stats", cpuPlot);
        contourPainter.linkProperty("cpu stats", cpuPlot);
        [...]
        }

This application will display a plot like the following:

qvision_cpuplot_window.png

By default, the QVDefaultGUI includes the following button for CPU plot statistics displaying, which opens a QVNumericPlot widget plotting the worker CPU usage:

qvision_gui_graphbutton.png

See also:
QVNumericPlot

QVHistogramPlot


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



QVision framework. PARP research group, copyright 2007, 2008.