qumbia-tango-controls 1.x
Library on top of cumbia-qtcontrols and cumbia-tango
|
strategy pattern. A class that configures and updates a Tango plot according to the properties of Tango attributes (minimum and maximum values) More...
#include <qutplotupdatestrategy.h>
Public Member Functions | |
QuTPlotUpdateStrategy (bool auto_configure=true) | |
The class constructor. More... | |
virtual | ~QuTPlotUpdateStrategy () |
the class destructor More... | |
void | update (const CuData &data, QWidget *widget) |
implementation of the QuWidgetUpdateStrategyI::update method mainly aimed at setting up the plot default lower and upper y scale bounds More... | |
strategy pattern. A class that configures and updates a Tango plot according to the properties of Tango attributes (minimum and maximum values)
The update implementation configures the plot with the default Y lower and upper bounds taken from the attribute properties (if the source is a Tango attribute).
After the configuration phase, QuPlotBase::update is called in order to draw the graph.
QuTPlotUpdateStrategy::QuTPlotUpdateStrategy | ( | bool | auto_configure = true | ) |
The class constructor.
auto_configure | true the plot uses Tango attribute properties to configure lower and upper bounds |
auto_configure | false no auto configuration is performed. Upper and lower bounds must be set manually or the plot scales must be put in autoscale mode |
|
virtual |
the class destructor
void QuTPlotUpdateStrategy::update | ( | const CuData & | da, |
QWidget * | widget | ||
) |
implementation of the QuWidgetUpdateStrategyI::update method mainly aimed at setting up the plot default lower and upper y scale bounds
da | data from the attribute (command) |
widget | the QuPlotBase that will be configured (the target of the stragegy pattern). |
if the CuData bundle contains the key "type" with value "property", then the plot is configured taking minimum and maximum values from the Tango attribute properties. Otherwise, QuPlotBase::update is called.
References update().
Referenced by update().