ImageSwitch

MacroModule
genre FlowControl
author Jan-Martin Kuhnigk
package FMEstable/ReleaseMeVis
definition ImageSwitch.def
see also Switch, Switch1toN, BaseSwitch
keywords bypass, base, switch

Purpose

Connects exactly one of multiple input images to exactly one (of potentially multiple) output connectors. It combines the functionality and can (or should) be used in place of the ML modules Switch and Switch1toN which, under certaint circumstances, use up valuable ML image cache unnecessarily.

Usage

Select the number of inputs and output and connect different images to the inputs. Observe the active output when switching through the input images.

Details

Using -1 for either active input or output index results in the invalidation of all outputs.

Windows

Default Panel

../../../Projects/BasicHelpers/ImageSwitch/Modules/mhelp/Images/Screenshots/ImageSwitch._default.png

Input Fields

input0 to input24: Image inputs. Only the connectors 0 to (numberOfInputs-1) are shown.

Output Fields

output0 to output24: Image outputs. Only the connectors 0 to (numberOfOutputs-1) are shown.

Parameter Fields

Visible Fields

Number Of Inputs

name: numberOfInputs, type: Integer, default: 2, minimum: 1, maximum: 25

The number of input connectors to be shown.

Active Input Index (-1 = None)

name: currentInput, type: Integer, default: 0, minimum: -1

The currently active input. Ranges between -1 and numberOfInputs-1, where -1 means that no input is active.

Number Of Outputs

name: numberOfOutputs, type: Integer, default: 1, minimum: 1, maximum: 25

The number of output connectors to be shown.

Active Output Index (-1 = None)

name: currentOutput, type: Integer, default: 0, minimum: -1

The currently active output. Ranges between -1 and numberOfOutputs-1, where -1 means that no output is active.