<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta name="robots" content="noindex"> <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>QwtThermo Class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body bgcolor="#ffffff"> <!-- Generated by Doxygen 1.2.3 on Thu Dec 14 00:27:22 2000 --> <center> <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> <a class="qindex" href="pages.html">Related Pages</a> </center> <hr><h1>QwtThermo Class Reference</h1>The Thermometer Widget. <a href="#_details">More...</a> <p> <code>#include <qwt_thermo.h></code> <p> Inherits QWidget, and <a class="el" href="class_qwtscaleif.html">QwtScaleIf</a>. <p> Inheritance diagram for QwtThermo<p><center><img src="class_qwtthermo_inherit_graph.gif" border="0" usemap="#QwtThermo_inherit_map" alt="Inheritance graph"></center> <map name="QwtThermo_inherit_map"> <area href="class_qwtscaleif.html" shape="rect" coords="85,1,157,19"> </map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwtthermo-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> <tr><td colspan=2><br><h2>Public Types</h2></td></tr> <tr><td nowrap align=right valign=top>enum </td><td valign=bottom><b>Orientation</b> { <b>Horizontal</b>, <b>Vertical</b> }</td></tr> <tr><td nowrap align=right valign=top>enum </td><td valign=bottom><b>ScalePos</b> { <br> <b>None</b>, <b>Left</b>, <b>Right</b>, <b>Top</b>, <br> <b>Bottom</b> <br> }</td></tr> <tr><td colspan=2><br><h2>Public Methods</h2></td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="class_qwtthermo.html#a0">QwtThermo</a> (QWidget *parent = 0, const char *name = 0)</td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="class_qwtthermo.html#a1">~QwtThermo</a> ()</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_qwtthermo.html#a2">setOrientation</a> (Orientation o, ScalePos s)</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_qwtthermo.html#a3">setBorderWidth</a> (int w)</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_qwtthermo.html#a4">setFillColor</a> (const QColor &c)</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_qwtthermo.html#a5">setAlarmColor</a> (const QColor &c)</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_qwtthermo.html#a6">setAlarmLevel</a> (double v)</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_qwtthermo.html#a7">setAlarmEnabled</a> (int tf)</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_qwtthermo.html#a8">setPipeWidth</a> (int w)</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_qwtthermo.html#a9">setRange</a> (double vmin, double vmax)</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_qwtthermo.html#a10">setMargin</a> (int m)</td></tr> <tr><td nowrap align=right valign=top><a name="a11" doxytag="QwtThermo::maxValue"></a> double </td><td valign=bottom><b>maxValue</b> ()</td></tr> <tr><td nowrap align=right valign=top><a name="a12" doxytag="QwtThermo::minValue"></a> double </td><td valign=bottom><b>minValue</b> ()</td></tr> <tr><td nowrap align=right valign=top><a name="a13" doxytag="QwtThermo::value"></a> double </td><td valign=bottom><b>value</b> ()</td></tr> <tr><td colspan=2><br><h2>Public Slots</h2></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_qwtthermo.html#g0">setValue</a> (double val)</td></tr> <tr><td colspan=2><br><h2>Protected Methods</h2></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_qwtthermo.html#b0">paintEvent</a> (QPaintEvent *e)</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_qwtthermo.html#b1">resizeEvent</a> (QResizeEvent *e)</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_qwtthermo.html#b2">scaleChange</a> ()</td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> The Thermometer Widget. <p> <p> <hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="QwtThermo::QwtThermo"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> QwtThermo::QwtThermo ( </b></td> <td valign="bottom"><b> QWidget * <em>parent</em> = 0, </b></td> </tr> <tr> <td></td> <td><b> const char * <em>name</em> = 0 ) </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Constructor. <p> </td> </tr> </table> <a name="a1" doxytag="QwtThermo::~QwtThermo"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> QwtThermo::~QwtThermo ( </b></td> <td valign="bottom"><b> ) </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Destructor. <p> </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a name="b0" doxytag="QwtThermo::paintEvent"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> void QwtThermo::paintEvent ( </b></td> <td valign="bottom"><b> QPaintEvent * <em>e</em> )<code> [protected]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Qt paint event handler. <p> </td> </tr> </table> <a name="b1" doxytag="QwtThermo::resizeEvent"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> void QwtThermo::resizeEvent ( </b></td> <td valign="bottom"><b> QResizeEvent * <em>e</em> )<code> [protected]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Qt resize event handler. <p> </td> </tr> </table> <a name="b2" doxytag="QwtThermo::scaleChange"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> void QwtThermo::scaleChange ( </b></td> <td valign="bottom"><b> )<code> [protected, virtual]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> notify changed scale. <p> <p> Reimplemented from <a class="el" href="class_qwtscaleif.html">QwtScaleIf</a>. </td> </tr> </table> <a name="a5" doxytag="QwtThermo::setAlarmColor"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> void QwtThermo::setAlarmColor ( </b></td> <td valign="bottom"><b> const QColor & <em>c</em> ) </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Specify liquid color above the alarm threshold. <p> <dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>c</em> </td><td> New color. The default is white. </td></tr> </table> </dl> </td> </tr> </table> <a name="a7" doxytag="QwtThermo::setAlarmEnabled"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> void QwtThermo::setAlarmEnabled ( </b></td> <td valign="bottom"><b> int <em>tf</em> ) </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Enable or disable alarm threshold. <p> <dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>tf</em> </td><td> <code>ZERO</code> (disabled) or non-zero (enabled) </td></tr> </table> </dl> </td> </tr> </table> <a name="a6" doxytag="QwtThermo::setAlarmLevel"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> void QwtThermo::setAlarmLevel ( </b></td> <td valign="bottom"><b> double <em>v</em> ) </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Specify the alarm threshold. <p> </td> </tr> </table> <a name="a3" doxytag="QwtThermo::setBorderWidth"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> void QwtThermo::setBorderWidth ( </b></td> <td valign="bottom"><b> int <em>w</em> ) </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Set the border width of the pipe. <p> </td> </tr> </table> <a name="a4" doxytag="QwtThermo::setFillColor"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> void QwtThermo::setFillColor ( </b></td> <td valign="bottom"><b> const QColor & <em>c</em> ) </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Change the color of the liquid. <p> <dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>c</em> </td><td> New color. The default color is black. </td></tr> </table> </dl> </td> </tr> </table> <a name="a10" doxytag="QwtThermo::setMargin"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> void QwtThermo::setMargin ( </b></td> <td valign="bottom"><b> int <em>m</em> ) </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Specify the distance between the pipe's endpoints and the widget's border. <p> <p> 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. <dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>m</em> </td><td> New Margin. The default values are 10 for horizontal orientation and 20 for vertical orientation. </td></tr> </table> </dl><dl compact><dt> <b>Warning: </b><dd> The margin has no effect if the scale is disabled. </dl> </td> </tr> </table> <a name="a2" doxytag="QwtThermo::setOrientation"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> void QwtThermo::setOrientation ( </b></td> <td valign="bottom"><b> Orientation <em>o</em>, </b></td> </tr> <tr> <td></td> <td><b> ScalePos <em>s</em> ) </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Change the thermometer's orientation. <p> <p> The scale position None disables the scale. <dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>o</em> </td><td> orientation. Possible values are Horizontal and Vertical. The default value is Vertical. </td></tr> <tr><td valign=top><em>s</em> </td><td> 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. </td></tr> </table> </dl> </td> </tr> </table> <a name="a8" doxytag="QwtThermo::setPipeWidth"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> void QwtThermo::setPipeWidth ( </b></td> <td valign="bottom"><b> int <em>w</em> ) </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Change the width of the pipe. <p> </td> </tr> </table> <a name="a9" doxytag="QwtThermo::setRange"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> void QwtThermo::setRange ( </b></td> <td valign="bottom"><b> double <em>vmin</em>, </b></td> </tr> <tr> <td></td> <td><b> double <em>vmax</em> ) </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Set the range. <p> <dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>vminValue</em> </td><td> corresponding lower or left end of the thermometer </td></tr> <tr><td valign=top><em>vmax</em> </td><td> Value corresponding to the upper or right end of the thermometer </td></tr> </table> </dl> </td> </tr> </table> <a name="g0" doxytag="QwtThermo::setValue"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> void QwtThermo::setValue ( </b></td> <td valign="bottom"><b> double <em>v</em> )<code> [slot]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Set the current value. <p> </td> </tr> </table> <hr>The documentation for this class was generated from the following files:<ul> <li>qwt_thermo.h<li>qwt_thermo.cpp</ul> <hr><address><small>Generated at Thu Dec 14 00:27:22 2000 for Qwt User's Guide by <a href="http://www.stack.nl/~dimitri/doxygen/index.html"> <img src="doxygen.gif" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.3 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, © 1997-2000</small></address> </body> </html>