Qwt User's Guide: QwtDialScaleDraw Class Reference

- Main Page
- Classes
- Files
- Related Pages

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# QwtDialScaleDraw Class Reference

Inheritance diagram for QwtDialScaleDraw:

[legend]
Collaboration diagram for QwtDialScaleDraw:

[legend]
List of all members.

## Detailed Description

A special scale draw made for QwtDial.

See also:
  QwtDial, QwtCompass

Definition at line 29 of file qwt_dial.h.

## Public Member Functions
| QwtDialScaleDraw (QwtDial *)
virtual QwtText | label (double value) const
void | setPenWidth (uint)
uint | penWidth () const

## Constructor & Destructor Documentation

QwtDialScaleDraw::QwtDialScaleDraw | ( | QwtDial * | parent | ) | `[explicit]`

Constructor

Parameters:

  | parent | Parent dial widget

Definition at line 77 of file qwt_dial.cpp.

## Member Function Documentation

QwtText QwtDialScaleDraw::label | ( | double | value | ) | const`[virtual]`

Call QwtDial::scaleLabel of the parent dial widget.

Parameters:

  | value | Value to display

See also:
  QwtDial::scaleLabel

Reimplemented from QwtAbstractScaleDraw.

Definition at line 111 of file qwt_dial.cpp.

References QwtAbstractScaleDraw::label(), and QwtDial::scaleLabel().

void QwtDialScaleDraw::setPenWidth | ( | uint | penWidth | ) |

Set the pen width used for painting the scale

Parameters:

  | penWidth | Pen width

See also:
  penWidth(), QwtDial::drawScale()

Definition at line 90 of file qwt_dial.cpp.

Referenced by QwtDial::setScaleTicks().

uint QwtDialScaleDraw::penWidth | ( |  | ) | const

Returns:
  Pen width used for painting the scale

See also:
  setPenWidth, QwtDial::drawScale()

Definition at line 99 of file qwt_dial.cpp.