SoSFTrigger — field used to trigger engines or connection networks
Contents
Description
This class can be used to start or to synchronize a network of field connections. It is the "null" field
— a field with no values. It is typically used as the "start button" for engines that change over time.
Triggers can be connected from any other type of field, and will notify any engines or nodes they are
part of (or any other triggers they are connected to) whenever the value of the field is set (even if it
is set to its current value) or the field is touch()'ed.
Since they have no value, SoSFTriggers are not written to file. A node or engine containing an
SoSFTrigger field will write only the field's name.
Inherits From
SoField > SoSField > SoSFTrigger
Methods
voidsetValue()
Starts the notification process; this is equivalent to calling touch().
voidgetValue()
Forces any connected engines or fields to evaluate themselves.
intoperator==(constSoSFTrigger&t)constintoperator!=(constSoSFTrigger&t)const
All trigger fields are equal; these methods always return TRUE and FALSE, respectively.
Name
SoSFTrigger — field used to trigger engines or connection networks
See Also
SoSFBool,SoMFBoolSoSFTrigger(3IV)()
Synopsis
#include<Inventor/fields/SoSFTrigger.h>
Methods from class SoSFTrigger:
voidsetValue()voidgetValue()intoperator==(constSoSFTrigger&t)constintoperator!=(constSoSFTrigger&t)const
Methods from class SoSField:
staticSoTypegetClassTypeId()
Methods from class SoField:
voidsetIgnored(SbBoolignore)SbBoolisIgnored()constSbBoolisDefault()constvirtualSoTypegetTypeId()constvirtualSbBoolisOfType(SoTypetype)constSbBoolset(constchar*valueString)voidget(SbString&valueString)voidtouch()SbBoolconnectFrom(SoField*fromField)SbBoolconnectFrom(SoEngineOutput*fromEngine)voiddisconnect()SbBoolisConnected()constSbBoolisConnectedFromField()constSbBoolgetConnectedField(SoField*&writingField)constSbBoolisConnectedFromEngine()constSbBoolgetConnectedEngine(SoEngineOutput*&engineOutput)constvoidenableConnection(SbBoolflag)SbBoolisConnectionEnabled()constintgetForwardConnections(SoFieldList&list)constSoFieldContainer*getContainer()const