LevelIndicator:
Filter:
Classes | GUI > Views

LevelIndicator

a level indicator GUI widget
Location: NOT INSTALLED!

Description

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

Class Methods

Inherited class methods

Instance Methods

.value

Get or set the current level of the view.

Arguments:

val

A Float between 0 and 1.

Returns:

.warning

.critical

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

Sets the style of the view.

Arguments:

val

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

.stepWidth

The width of each led light, for \led.

Arguments:

val

An positive Integer.

.numSteps

The number of steps used in \led style.

Arguments:

val

An positive Integer.

.image

NOTE: Not yet implemented in Qt GUI

Arguments:

image

An Image. The default image is the SC cube.

.numTicks

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

Arguments:

number

An Integer >= 0.

.numMajorTicks

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

Arguments:

number

An Integer >= 0.

.drawsPeak

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

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

Arguments:

val

A Float.

.meterColor

.warningColor

.criticalColor

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

Arguments:

color

A Color.

Inherited instance methods

Examples