Class SoGate

  • All Implemented Interfaces:

    public class SoGate
    extends SoEngine
    Selectively copies its input to its output. This engine selectively copies its input to its output. The type of the input field can be any subclass of SoMField. The type is specified when an instance of the class is created. For example, SoGate( SoMFFloat.getClass()) creates an engine that copies floating-point values.

    The enable input controls continuous flow-through of values. While enable is true, the input will be copied to the output. Alternatively, by touching the trigger input, you can copy a single value from the input to the output.

    Note that by default input does not contain any values.

    File format/default:

    Gate {

      type <inputType>
      input []
      enable false

    See Also:
    SoEngineOutput, SoConcatenate, SoSelectOne
    • Field Detail

      • enable

        public final SoSFBool enable
        Enable continous flow-through.
      • trigger

        public final SoSFTrigger trigger
        Copy a single value.
      • input

        public final SoMField input
        The value that is copied to the output when the gate is open.
      • output

        public final SoEngineOutput output
        ( lt ) Contains a copy of the input value if the gate is open.
    • Constructor Detail

      • SoGate

        public SoGate​(java.lang.Class<? extends Inventor> mfInputType)
        Constructor. The argument specifies the type of the input field.