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

SoSFEngine — field containing a pointer to a engine

Description

       This field maintains a pointer to an SoEngine instance, correctly maintaining its reference count.

       SoSFEngines are written to file as the engine they are pointing to. For example:

          mySoSFEngineField ElapsedTime {}

     is  an  SoSFEngine  field  named 'mySoSFEngineField', pointing to an SoElapsedTime engine. If the engine is
     used elsewhere, the regular DEF/USE instancing mechanism applies:

          anotherSoSFEngineField USE calculator

     is an SoSFEngine field that points to a engine named 'calculator' that was DEF'ed earlier in the scene.

Inherits From

       SoField > SoSField > SoSFEngine

Methods

staticSoTypegetClassTypeId()virtualvoidgetTypeId()const
          Returns the type for this class or a particular object of this class.

     SoEngine*getValue()const
          Returns this field's value.

     SoEngine*operator=(SoEngine*newValue)voidsetValue(SoEngine*newValue)
          Sets this field to newValue.

     intoperator==(constSoSFEngine&f)constintoperator!=(constSoSFEngine&f)const
          Returns TRUE if f is of the same type and has the same value as this field.

Name

       SoSFEngine — field containing a pointer to a engine

See Also

SoField,SoSField,SoMFEngine,SoEngineSoSFEngine(3IV)()

Synopsis

#include<Inventor/fields/SoSFEngine.h>

          Methods from class SoSFEngine:

     staticSoTypegetClassTypeId()virtualvoidgetTypeId()constSoEngine*getValue()constSoEngine*operator=(SoEngine*newValue)voidsetValue(SoEngine*newValue)intoperator==(constSoSFEngine&f)constintoperator!=(constSoSFEngine&f)const

          Methods from class SoField:

     voidsetIgnored(SbBoolignore)SbBoolisIgnored()constSbBoolisDefault()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

See Also