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
-
public class SoSFColorRGBA extends SoSField
Field containing an RGBA color. A single-value field containing anSbColorRGBA
. 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:
SoField
,SoSField
,SoMFColorRGBA
,SbColorRGBA
-
-
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 SoSFColorRGBA(SoFieldContainer fieldContainer, java.lang.String fieldName, SoField.FieldTypes fieldType, SbColorRGBA defaultValue)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
SbColorRGBA
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
setValue(SbVec4f vec)
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 Detail
-
SoSFColorRGBA
public SoSFColorRGBA(SoFieldContainer fieldContainer, java.lang.String fieldName, SoField.FieldTypes fieldType, SbColorRGBA defaultValue)
Default constructor.
-
-
Method Detail
-
setValue
public void setValue(float r, float g, float b, float a)
Convenience method for setting the value.
-
setValue
public void setValue(SbColorRGBA newValue)
Sets this field to newValue.
-
setValue
public void setValue(float[] rgba)
Convenience method for setting the value.
-
setValue
public void setValue(SbVec4f vec)
Convenience method for setting the value.
-
setHSVAValue
public void setHSVAValue(float[] hsva)
Convenience method for setting the value.
-
getValue
public SbColorRGBA getValue()
Returns this field's value.
-
setHSVAValue
public void setHSVAValue(float h, float s, float v, float a)
Convenience method for setting the value.
-
-