Class SoSFColor


public class SoSFColor extends SoSField
Field containing an RGB color. A single-value field containing an SbColor. Values may be set in either RGB (red, green, blue) or HSV (hue, saturation, value) color spaces.

SoSFColors are written to file as an RGB triple 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)
      Convenience method for setting the value.
    • setValue

      public void setValue(SbColor newValue)
      Sets this field to newValue.
    • setHSVValue

      public void setHSVValue(float h, float s, float v)
      Convenience method for setting the value.
    • setValue

      public void setValue(SbVec3f vec)
      Convenience method for setting the value.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class SoField
    • setHSVValue

      public void setHSVValue(float[] hsv)
      Convenience method for setting the value.
    • getValue

      public SbColor getValue()
      Returns this field's value.
    • setValue

      public void setValue(float[] rgb)
      Convenience method for setting the value.