logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SoOnOff — engine that functions as an on/off switch

Description

       This  engine  has  three  triggers as input and two Boolean values as output. The isOn output is a switch
       that can be turned on or off by  triggering  the  corresponding  input.  You  can  toggle  the  value  by
       triggering the toggle input. By default isOn is FALSE. The isOff output value is the inverse of isOn

File Format/Defaults

OnOff{onofftoggle}

Inherits From

       SoBase > SoFieldContainer > SoEngine > SoOnOff

Inputs

SoSFTriggeron
          Turn the isOn switch on.

     SoSFTriggeroff
          Turn the isOn switch off.

     SoSFTriggertoggle
          Toggle the switch value.

Methods

SoOnOff()
          Constructor.

Name

       SoOnOff — engine that functions as an on/off switch

Outputs

(SoSFBool)isOn
          Switch value.

     (SoSFBool)isOff
          The inverse of isOn.

See Also

SoEngineOutputSoOnOff(3IV)()

Synopsis

#include<Inventor/engines/SoOnOff.h>

          Inputs from class SoOnOff:

     SoSFTriggeronSoSFTriggeroffSoSFTriggertoggle

          Outputs from class SoOnOff:

     (SoSFBool)isOn(SoSFBool)isOff

          Methods from class SoOnOff:

                         SoOnOff()

          Methods from class SoEngine:

     staticSoTypegetClassTypeId()virtualintgetOutputs(SoEngineOutputList&list)constSoEngineOutput*getOutput(constSbName&outputName)constSbBoolgetOutputName(constSoEngineOutput*output,SbName&outputName)constSoEngine*copy()conststaticSoEngine*getByName(constSbName&name)staticintgetByName(constSbName&name,SoEngineList&list)

          Methods from class SoFieldContainer:

     voidsetToDefaults()SbBoolhasDefaultValues()constSbBoolfieldsAreEqual(constSoFieldContainer*fc)constvoidcopyFieldValues(constSoFieldContainer*fc,SbBoolcopyConnections=FALSE)SbBoolset(constchar*fieldDataString)voidget(SbString&fieldDataString)virtualintgetFields(SoFieldList&resultList)constvirtualSoField*getField(constSbName&fieldName)constSbBoolgetFieldName(constSoField*field,SbName&fieldName)constSbBoolisNotifyEnabled()constSbBoolenableNotify(SbBoolflag)

          Methods from class SoBase:

     voidref()voidunref()constvoidunrefNoDelete()constvoidtouch()virtualSoTypegetTypeId()constSbBoolisOfType(SoTypetype)constvirtualvoidsetName(constSbName&name)virtualSbNamegetName()const

See Also