Package com.openinventor.inventor.fields
Class SoSFNode
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.fields.SoField
-
- com.openinventor.inventor.fields.SoSField
-
- com.openinventor.inventor.fields.SoSFNode
-
public class SoSFNode extends SoSField
Field containing a a node. This field maintains a anSoNode
instance.SoSFNodes are written to file as the node they are containing. For example:
is anmySoSFNodeField Cube {} SoSFNode
field named 'mySoSFNodeField', referring to anSoCube
node. If the node is used elsewhere, the regular DEF/USE instancing mechanism applies:
is ananotherSoSFNodeField USE topSeparator SoSFNode
field that refers to a node named 'topSeparator' that was DEF'ed earlier in the scene.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.fields.SoField
SoField.FieldTypes
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoSFNode(SoFieldContainer fieldContainer, java.lang.String fieldName, SoField.FieldTypes fieldType, SoNode defaultValue)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
SoNode
getValue()
Returns this field's value.void
setValue(SoNode newValue)
Sets this field to newValue.-
Methods inherited from class com.openinventor.inventor.fields.SoField
appendConnection, appendConnection, connectFrom, connectFrom, disconnect, disconnect, disconnect, enableConnection, get, getConnectedEngine, getConnectedField, getContainer, getNumConnections, getValueSize, isConnected, isConnectedFromEngine, isConnectedFromField, isConnectedFromVRMLInterp, isConnectionEnabled, isDefault, isIgnored, set, setIgnored, touch
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Constructor Detail
-
SoSFNode
public SoSFNode(SoFieldContainer fieldContainer, java.lang.String fieldName, SoField.FieldTypes fieldType, SoNode defaultValue)
Default constructor.
-
-