man SoSFColor () - field containing an RGB color

NAME

SoSFColor - field containing an RGB color

INHERITS FROM

SoField > SoSField > SoSFColor

SYNOPSIS

Methods from class SoSFColor: c } c } setValue(const SbVec3f &vec)

c } c } setValue(float red, float green, float blue)

c } c } setValue(const float rgb[3])

c } c } setHSVValue(float hue, float saturation, float value)

c } c } setHSVValue(const float hsv[3])

c } c } getClassTypeId()

c } c } getTypeId() const

c } c } getValue() const

c } c } operator =(const SbColor & newValue)

c } c } setValue(const SbColor & newValue)

c } c } operator ==(const SoSFColor &f) const

c } c } operator !=(const SoSFColor &f) const Methods from class SoField: c } c } setIgnored(SbBool ignore)

c } c } isIgnored() const

c } c } isDefault() const

c } c } isOfType(SoType type) const

c } c } set(const char *valueString)

c } c } get(SbString &valueString)

c } c } touch()

c } c } connectFrom(SoField *fromField)

c } c } connectFrom(SoEngineOutput *fromEngine)

c } c } disconnect()

c } c } isConnected() const

c } c } isConnectedFromField() const

c } c } getConnectedField(SoField *&writingField) const

c } c } isConnectedFromEngine() const

c } c } getConnectedEngine(SoEngineOutput *&engineOutput) const

c } c } enableConnection(SbBool flag)

c } c } isConnectionEnabled() const

c } c } getForwardConnections(SoFieldList &list) const

c } c } getContainer() const

DESCRIPTION

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.

METHODS

c } c } setValue(const SbVec3f &vec)

c } c } setValue(float red, float green, float blue)

c } c } setValue(const float rgb[3])

c } c } setHSVValue(float hue, float saturation, float value)

c } c } setHSVValue(const float hsv[3])

Convenience methods for setting the value. c } c } getClassTypeId()

c } c } getTypeId() const

Returns the type for this class or a particular object of this class. c } c } getValue() const

Returns this field's value. c } c } operator =(const SbColor & newValue)

c } c } setValue(const SbColor & newValue)

Sets this field to newValue. c } c } operator ==(const SoSFColor &f) const

c } c } operator !=(const SoSFColor &f) const

Returns TRUE if f is of the same type and has the same value as this field.

SEE ALSO

SoField, SoSField, SoMFColor, SbColor