Package com.openinventor.inventor.fields
Class SoSFVec2f
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.fields.SoField
com.openinventor.inventor.fields.SoSField
com.openinventor.inventor.fields.SoSFVec2f
Field containing a two-dimensional vector.
SoSFVec2fs are written to file as a pair of floating point values separated by whitespace.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.fields.SoField
SoField.FieldTypesNested 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
ConstructorsConstructorDescriptionSoSFVec2f(SoFieldContainer fieldContainer, String fieldName, SoField.FieldTypes fieldType, SbVec2f defaultValue) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetValue()Returns this field's value.voidsetValue(float[] xy) Sets the field to the given value.voidsetValue(float x, float y) Sets the field to the given value.voidConvenience method that allows you to specify a field value using a double precision variable.voidSets 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, touchMethods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Constructor Details
-
SoSFVec2f
public SoSFVec2f(SoFieldContainer fieldContainer, String fieldName, SoField.FieldTypes fieldType, SbVec2f defaultValue) Default constructor.
-
-
Method Details
-
setValue
public void setValue(float x, float y) Sets the field to the given value. -
getValue
Returns this field's value. -
setValue
Sets this field to newValue. -
equals
-
setValue
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[] xy) Sets the field to the given value.
-