VisiOmatic web client

Class

ChannelUI

Extends

new ChannelUI(optionsopt) → {ChannelUI}

Create a VisiOmatic dialog for managing the VisiOmatic layer channels.

Parameters

  • options object <optional>

    Options.

    Properties

    • title string <optional>
      'Channel mixing'

      Title of the dialog window or panel.

    • color 'grey' | 'jet' | 'cool' | 'hot' <optional>
      'grey'

      Default color map in 'mono' mixing mode.

    • mixingMode 'mono' | 'color' <optional>

      Mixing mode: single channel ('mono') or color mix ('color'). Defaults to layer settings.

See

  • UI for additional control options.

Returns

  • ChannelUI

    Instance of a channel mixing user interface.

Source

Methods

privatestatic

_activateChanElem(trashElem, layer, channel)

Add listener to a channel element for setting the current channel of a given VisiOmatic layer.

Parameters

  • trashElem object

    Trash element.

  • layer VTileLayer

    VisiOmatic layer.

  • channel number

    Image channel.

Source

privatestatic

_activateTrashElem(trashElem, layer, channel)

Add listener to a trash element for blackening the current channel color of a given VisiOmatic layer.

Parameters

  • trashElem object

    Trash element.

  • layer VTileLayer

    VisiOmatic layer.

  • channel number

    Image channel.

Source

privatestatic

_addMinMax(layer, channel, box)

Add a pair of spinboxes for setting the min and max clipping limits of pixel values.

Parameters

  • layer VTileLayer

    VisiOmatic layer.

  • channel number

    Image channel.

  • box object

    The parent box element.

Source

privatestatic

_initColorDialog(layer, box)

Initialize the 'color' flavor of the channel mixing dialog.

Parameters

  • layer VTileLayer

    VisiOmatic layer.

  • box object

    The parent box element.

Source

privatestatic

_initMonoDialog(layer, box)

Initialize the 'mono' flavor of the channel mixing dialog.

Parameters

  • layer VTileLayer

    VisiOmatic layer.

  • box object

    The parent box element.

Source

privatestatic

_playAnimation(layer, {boolean))

Play Animation by iterating over channels/slices.

Parameters

  • layer VTileLayer

    VisiOmatic layer.

  • {boolean)

    [reverse=false] Play in reverse?

Source

privatestatic

_updateChannel(layer, channel, {boolean))

Set/update the channel controls for a given channel.

Parameters

  • layer VTileLayer

    VisiOmatic layer.

  • channel number

    Image channel.

  • {boolean)

    [updateColor=false] Update Color patch element?

Source

privatestatic

_updateChannelMix(layer, channel, channel_rgb)

Update the color mixing matrix with the RGB contribution of a given channel and redraw the VisiOmatic layer.

Parameters

  • layer VTileLayer

    VisiOmatic layer.

  • channel number

    Image channel.

  • channel_rgb RGB

    RGB color.

Source

privatestatic

_updateColPick(layer, channel)

Update the color picker value based on the given channel color.

Parameters

  • layer number

    VisiOmatic layer.

  • channel number

    Image channel.

Source

static

loadSettings(layer, settings, mode, keepChannelopt)

Copy channel mixing settings to a VisiOmatic layer.

Parameters

  • layer VTileLayer

    VisiOmatic layer.

  • settings object

    Object where to save the settings properties.

  • mode 'mono' | 'color'

    Mixing mode: single channel ('mono') or color mix ('color').

  • keepChannel boolean <optional>
    false

    Overwrite the current layer channel?

Source

static

saveSettings(layer, settings, mode)

Copy channel mixing settings from a VisiOmatic layer.

Parameters

  • layer VTileLayer

    VisiOmatic layer.

  • settings object

    Object where to save the settings properties.

  • mode 'mono' | 'color'

    Mixing mode: single channel ('mono') or color mix ('color').

Source