Package com.openinventor.inventor.fields
Class SoSFColorRGBA
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.fields.SoField
com.openinventor.inventor.fields.SoSField
com.openinventor.inventor.fields.SoSFColorRGBA
Field containing an RGBA color.
A single-value field containing an
SbColorRGBA
. Values are set in RGBA (red, green, blue, alpha) color space.
SoSFColorRGBAs are written to file as an RGBA quadruple of floating point numbers in standard scientific notation, in the range 0.0 to 1.0.
- See Also:
-
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
ConstructorsConstructorDescriptionSoSFColorRGBA
(SoFieldContainer fieldContainer, String fieldName, SoField.FieldTypes fieldType, SbColorRGBA defaultValue) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getValue()
Returns this field's value.void
setHSVAValue
(float[] hsva) Convenience method for setting the value.void
setHSVAValue
(float h, float s, float v, float a) Convenience method for setting the value.void
setValue
(float[] rgba) Convenience method for setting the value.void
setValue
(float r, float g, float b, float a) Convenience method for setting the value.void
setValue
(SbColorRGBA newValue) Sets this field to newValue.void
Convenience method for setting the value.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 Details
-
SoSFColorRGBA
public SoSFColorRGBA(SoFieldContainer fieldContainer, String fieldName, SoField.FieldTypes fieldType, SbColorRGBA defaultValue) Default constructor.
-
-
Method Details
-
setValue
public void setValue(float r, float g, float b, float a) Convenience method for setting the value. -
setValue
Sets this field to newValue. -
setValue
public void setValue(float[] rgba) Convenience method for setting the value. -
setValue
Convenience method for setting the value. -
equals
-
setHSVAValue
public void setHSVAValue(float[] hsva) Convenience method for setting the value. -
getValue
Returns this field's value. -
setHSVAValue
public void setHSVAValue(float h, float s, float v, float a) Convenience method for setting the value.
-