L-VIS User Manual
150
LOYTEC
Version 6.2
LOYTEC electronics GmbH
Entry button to calculate a color gradient from the color of the first entry in the selected
range up to the color of the last entry in the selected range.
NOTE:
The gradient function will operate on the alpha channel in the same way as for the normal
color value, so that on devices which support ARGB color mode, this function can be used
to generate gradients from opaque to transparent.
To set a range of entries back to unset or to a specific color, you can multi-select the entries
from the list and then set or reset their color all at the same time.
9.8 Color Mapping
Color mapping objects are used to change individual colors of a control depending on the
value of a data point. Mapping data point values to colors works the same way as in a
mapping table. The desired color is selected from a table which lists different input values
and their corresponding colors. Please also review the functional description of the mapping
table object for more details.
There are two major differences when compared to a normal mapping table:
1.
Mapping table objects are passive lookup tables. They are only used by the control
to support the display of values received, and to build value selection menus for
the user to select a value to enter. The control itself is the object receiving or
sending values. The mapping table object only assists the control in value
translation. In contrast, color mapping objects are active, similar to trigger objects.
They receive their own values from separate input data points connected directly
to the color mapping object. Whenever a new value is received, the color mapping
object will translate it to the desired color and reconfigure the control accordingly.
This means that color changes through color mapping objects are completely
independent from the value currently displayed by the control itself.
2.
Any number of color mappings can be connected to the same control, with each
mapping targeting one or more different control colors. While the color from a
standard mapping table is always assigned to a specific, fixed color (usually the
text or container color), a color mapping object can be configured to control any of
the available colors.
9.8.1 Color Mapping Properties
The properties of a color mapping table are set on the
Color Mapping
property page. The
New Entry
button on this page adds a new entry to the mapping table. Once two or more
entries are added and their values are set, colors can be assigned to the individual entries by
pressing the color patch next to the desired list entry. The
Gradient
button can be used to
calculate color gradients in the same way as in standard mapping tables.
To the left of the color table is the
Color Selection
area. This area looks similar to the
property page used to set the initial colors for a control. The main difference is that all of
the
color buttons
shown in this area
function as
toggle switches
. Pressing a color button
will select the color for being controlled by the color map. Pressing it again will return the
button to normal state and the color will not be controlled by the color map any more.
NOTE:
If the same color is selected in more than one color map on the same control, the resulting
color depends on the order of data point updates received. This is because color mapping
objects are event driven. It is therefore usually not desirable to have the same color
controlled by multiple color mapping objects. It is however common to have a number of
different color maps controlling individual colors of the same control.