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:
  • Constructor Details

  • Method Details

    • equals

      public boolean equals(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.