qumbia-tango-controls 1.x
Library on top of cumbia-qtcontrols and cumbia-tango
Public Member Functions | List of all members
QuTPlotUpdateStrategy Class Reference

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>

Inheritance diagram for QuTPlotUpdateStrategy:
Inheritance graph
[legend]

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ QuTPlotUpdateStrategy()

QuTPlotUpdateStrategy::QuTPlotUpdateStrategy ( bool  auto_configure = true)

The class constructor.

Parameters
auto_configuretrue the plot uses Tango attribute properties to configure lower and upper bounds
auto_configurefalse no auto configuration is performed. Upper and lower bounds must be set manually or the plot scales must be put in autoscale mode

◆ ~QuTPlotUpdateStrategy()

QuTPlotUpdateStrategy::~QuTPlotUpdateStrategy ( )
virtual

the class destructor

Member Function Documentation

◆ update()

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

Parameters
dadata from the attribute (command)
widgetthe 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().


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