Class SoSFEngine


  • public class SoSFEngine
    extends SoSField
    Field containing an engine instance. This field maintains an SoEngine instance.

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

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

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

    See Also:
    SoField, SoSField, SoMFEngine, SoEngine
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class SoField
      • setValue

        public void setValue​(SoEngine newValue)
        Sets this field to newValue.
      • getValue

        public SoEngine getValue()
        Returns this field's value.