QwtWheel(3)

NAME
QwtWheel - The Wheel Widget.

SYNOPSIS

#include <qwt_wheel.h>

Inherits QwtSliderBase.

  Public Types
enum Orientation { Horizontal, Vertical }

  Public Methods
QwtWheel (QWidget *parent=0, const char *name=0)
~QwtWheel ()
void setTotalAngle (double angle)
void setTickCnt (int cnt)
void setOrientation (Orientation o)
void setViewAngle (double angle)
void setInternalBorder (int width)
void setMass (double val)

DETAILED DESCRIPTION

The Wheel Widget.

 The wheel widget can be used to change values over a very large range in very small steps. Using the setMass member, it can be configured as a flywheel.

See also:
The radio example.

CONSTRUCTOR & DESTRUCTOR DOCUMENTATION

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

Constructor.

  QwtWheel::~QwtWheel ()

Destructor.

MEMBER FUNCTION DOCUMENTATION

  void QwtWheel::setInternalBorder (int w)

Set the internal border width of the wheel.

 The internal border must not be smaller than 1 and is limited in dependence on the wheel's size. Values outside the allowed range will be clipped.

The internal border defaults to 1.

Parameters:

w   border width

  void QwtWheel::setMass (double val) [virtual]

Set the mass of the wheel.

 Assigning a mass turns the wheel into a flywheel.

Parameters:

val the wheel's mass

Reimplemented from QwtSliderBase.

  void QwtWheel::setOrientation (Orientation o)

Set the wheel's orientation.

Parameters:

o   Orientation. Allowed values are QwtWheel::Horizontal and QwtWheel::Vertical. Defaults to QwtWheel::Horizontal.

  void QwtWheel::setTickCnt (int cnt)

Adjust the number of grooves in the wheel's surface.

 The number of grooves is limited to 6 <= cnt <= 50. Values outside this range will be clipped. The default value is 10.

Parameters:

cnt Number of grooves per 360 degrees

  void QwtWheel::setTotalAngle (double angle)

Set the total angle which the wheel can be turned.

 One full turn of the wheel corresponds to an angle of 360 degrees. A total angle of n*360 degrees means that the wheel has to be turned n times around its axis to get from the minimum value to the maximum value.

The default setting of the total angle is 360 degrees.

Parameters:

angle
    total angle in degrees

  void QwtWheel::setViewAngle (double angle)

Specify the visible portion of the wheel.

 You may use this function for fine-tuning the appearance of the wheel. The default value is 175 degrees. The value is limited from 10 to 175 degrees.

Parameters:

angle
    Visible angle in degrees

AUTHOR

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