Class SoSFColorRGBA


public class SoSFColorRGBA extends SoSField
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:
  • Constructor Details

  • Method Details

    • 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.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class SoField
    • 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.