QwtThermo(3)

NAME
QwtThermo - The Thermometer Widget.

SYNOPSIS

#include <qwt_thermo.h>

Inherits QWidget, and QwtScaleIf.

  Public Types
enum Orientation { Horizontal, Vertical }
enum ScalePos { None, Left, Right, Top, Bottom }

  Public Slots
void setValue (double val)

  Public Methods
QwtThermo (QWidget *parent=0, const char *name=0)
~QwtThermo ()
void setOrientation (Orientation o, ScalePos s)
void setBorderWidth (int w)
void setFillColor (const QColor &c)
void setAlarmColor (const QColor &c)
void setAlarmLevel (double v)
void setAlarmEnabled (int tf)
void setPipeWidth (int w)
void setRange (double vmin, double vmax)
void setMargin (int m)
double maxValue ()
double minValue ()
double value ()

  Protected Methods
void paintEvent (QPaintEvent *e)
void resizeEvent (QResizeEvent *e)
void scaleChange ()

DETAILED DESCRIPTION

The Thermometer Widget.

CONSTRUCTOR & DESTRUCTOR DOCUMENTATION

  QwtThermo::QwtThermo (QWidget * parent = 0, const char * name = 0)

Constructor.

  QwtThermo::~QwtThermo ()

Destructor.

MEMBER FUNCTION DOCUMENTATION

  void QwtThermo::paintEvent (QPaintEvent * e) [protected]

Qt paint event handler.

  void QwtThermo::resizeEvent (QResizeEvent * e) [protected]

Qt resize event handler.

  void QwtThermo::scaleChange () [protected, virtual]

notify changed scale.

Reimplemented from QwtScaleIf.

  void QwtThermo::setAlarmColor (const QColor & c)

Specify liquid color above the alarm threshold.

Parameters:

c   New color. The default is white.

  void QwtThermo::setAlarmEnabled (int tf)

Enable or disable alarm threshold.

Parameters:

tf  ZERO (disabled) or non-zero (enabled)

  void QwtThermo::setAlarmLevel (double v)

Specify the alarm threshold.

  void QwtThermo::setBorderWidth (int w)

Set the border width of the pipe.

  void QwtThermo::setFillColor (const QColor & c)

Change the color of the liquid.

Parameters:

c   New color. The default color is black.

  void QwtThermo::setMargin (int m)

Specify the distance between the pipe's endpoints and the widget's border.

 The margin is used to leave some space for the scale labels. If a large font is used, it is advisable to adjust the margins.

Parameters:

m   New Margin. The default values are 10 for horizontal orientation and 20 for vertical orientation.

Warning:
The margin has no effect if the scale is disabled.

  void QwtThermo::setOrientation (Orientation o, ScalePos s)

Change the thermometer's orientation.

 The scale position None disables the scale.

Parameters:

o   orientation. Possible values are Horizontal and Vertical. The default value is Vertical.

s   Position of the scale. For a horizontal orientation, the scale position can be Top, Bottom or None. A vertical thermometer may have the scale positions Left, Right or None. The default is None.

  void QwtThermo::setPipeWidth (int w)

Change the width of the pipe.

  void QwtThermo::setRange (double vmin, double vmax)

Set the range.

Parameters:

vminValue
    corresponding lower or left end of the thermometer

vmax
    Value corresponding to the upper or right end of the thermometer

  void QwtThermo::setValue (double v) [slot]

Set the current value.

AUTHOR

Generated automatically by Doxygen for Qwt User's Guide from the source code.