LevelIndicator:
Filter:
Classes | GUI > Views

LevelIndicator : View : QObject : Object

a level indicator GUI widget
Subclasses: QLevelIndicator

Description

A level indicator view, suitable for use as a level or peak meter, etc.

Class Methods

Inherited class methods

Undocumented class methods

LevelIndicator.meterServer(server)

LevelIndicator.qtClass

Instance Methods

.value

.value = val

Get or set the current level of the view.

Arguments:

val

A Float between 0 and 1.

Returns:

.warning = val

.critical = val

Set the warning and critical thresholds. If meter value is above either threshold, -warningColor or -criticalColor will be shown, respectively (by default, yellow and red). If -drawsPeak is true warning color will be displayed based on -peakLevel rather than value.

Arguments:

val

A Float.

.style = val

Sets the style of the view.

Arguments:

val

An QLevelIndicatorStyle \continuous or \led (see -stepWidth)

.stepWidth = val

The width of each led light, for \led.

Arguments:

val

An positive Integer.

.numSteps = val

The number of steps used in \led style.

Arguments:

val

An positive Integer.

.image = image

NOTE: Not yet implemented in Qt GUI

Arguments:

image

An Image. The default image is the SC cube.

.numTicks = number

The number of ticks to display in the view's scale.

Arguments:

number

An Integer >= 0.

.numMajorTicks = number

The number of ticks in the view's scale which will be large sized.

Arguments:

number

An Integer >= 0.

.drawsPeak = bool

Determines whether the view draws a separate peak display. This can be useful for displaying both peak and RMS values. If drawsPeak is true -warning and -critical will be displayed based on -peakLevel rather than value.

Arguments:

bool

A Boolean. By default the peak is not drawn.

.peakLevel = val

Sets the level of the peak display. (See -drawsPeak.)

Arguments:

val

A Float.

.meterColor = color

.warningColor = color

.criticalColor = color

Sets the color of the meter, as well as the warning and critical colors.

Arguments:

color

A Color.

Inherited instance methods

Undocumented instance methods

.background

.background = color

Examples