PARP Research Group Universidad de Murcia


QVCPUPlot Class Reference
[GUI blocks based on the QWT library]

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

#include <QVCPUPlot>


Detailed Description

Class for plot graphs of block's cpustat properties.

This class lets us plot graphs for QVStat block's output properties. Each QVProcessingBlock 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()
        {
        [...]
        ComponentTreeBlock componentTreeBlock("Component Tree");
        CannyBlock cannyBlock("Canny operator");
        ContourPainter contourPainter("Contour painter");
        [...]
        QVCPUPlot cpuPlot("CPU Plot", true, 10);
        componentTreeBlock.linkProperty("cpu stats", cpuPlot);
        cannyBlock.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 block 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, 2009, 2010, 2011.