Class SoSFNode


  • public class SoSFNode
    extends SoSField
    Field containing a a node. This field maintains a an SoNode instance.

    SoSFNodes are written to file as the node they are containing. For example:

       mySoSFNodeField Cube {}
    is an SoSFNode field named 'mySoSFNodeField', referring to an SoCube node. If the node is used elsewhere, the regular DEF/USE instancing mechanism applies:

       anotherSoSFNodeField USE topSeparator
    is an SoSFNode field that refers to a node named 'topSeparator' that was DEF'ed earlier in the scene.

    See Also:
    SoField, SoSField, SoMFNode, SoNode
    • Method Detail

      • equals

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

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

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