Package com.openinventor.inventor.fields
Class SoSFVec3f
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.fields.SoField
-
- com.openinventor.inventor.fields.SoSField
-
- com.openinventor.inventor.fields.SoSFVec3f
-
-
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 SoSFVec3f(SoFieldContainer fieldContainer, java.lang.String fieldName, SoField.FieldTypes fieldType, SbVec3f defaultValue)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
SbVec3f
getValue()
Returns this field's value.void
setValue(float[] xyz)
Sets the field to the given value.void
setValue(float x, float y, float z)
Sets the field to the given value.void
setValue(SbVec3d vec3d)
Convenience method that allows you to specify a field value using a double precision variable.void
setValue(SbVec3f 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
-
SoSFVec3f
public SoSFVec3f(SoFieldContainer fieldContainer, java.lang.String fieldName, SoField.FieldTypes fieldType, SbVec3f defaultValue)
Default constructor.
-
-
Method Detail
-
setValue
public void setValue(float x, float y, float z)
Sets the field to the given value.
-
getValue
public SbVec3f getValue()
Returns this field's value.
-
setValue
public void setValue(SbVec3f newValue)
Sets this field to newValue.
-
setValue
public void setValue(SbVec3d vec3d)
Convenience method that allows you to specify a field value using a double precision variable. Note that Open Inventor fields still store only single precision values, not double precision values. The specified value is converted to single precision, then stored.
-
setValue
public void setValue(float[] xyz)
Sets the field to the given value.
-
-