Package com.openinventor.inventor.fields
Class SoSFVec4i32
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.fields.SoField
com.openinventor.inventor.fields.SoSField
com.openinventor.inventor.fields.SoSFVec4i32
Field containing a homogeneous four-dimensional vector.
Field containing a homogeneous four-dimensional vector, each component being an integer.
SoSFVec4i32s are written to file as four integer 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
ConstructorsConstructorDescriptionSoSFVec4i32(SoFieldContainer fieldContainer, String fieldName, SoField.FieldTypes fieldType, SbVec4i32 defaultValue) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetValue()Returns this field's value.voidsetValue(int[] xyzw) Sets the field to the given values.voidsetValue(int x, int y, int z, int w) Sets the field to the given values.voidConvenience method that allows you to specify a field value using a double precision variable.voidConvenience method that allows you to specify a field value using a single 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
-
SoSFVec4i32
public SoSFVec4i32(SoFieldContainer fieldContainer, String fieldName, SoField.FieldTypes fieldType, SbVec4i32 defaultValue) Default constructor.
-
-
Method Details
-
getValue
Returns this field's value. -
setValue
public void setValue(int x, int y, int z, int w) Sets the field to the given values. -
equals
-
setValue
Sets this field to newValue. -
setValue
Convenience method that allows you to specify a field value using a double precision variable. The specified value is converted to int value, then stored. -
setValue
Convenience method that allows you to specify a field value using a single precision variable. The specified value is converted to int value, then stored. -
setValue
public void setValue(int[] xyzw) Sets the field to the given values.
-