NAME
SoSFColor – field containing an RGB color
INHERITS FROM
SoSFColor
SYNOPSIS
Methods from class SoSFColor:
void setValue(float red, float green, float blue)
void setValue(const float rgb[3])
void setHSVValue(float hue, float saturation, float value)
void setHSVValue(const float hsv[3])
static SoType getClassTypeId()
virtual void getTypeId() const
void setValue(const SbColor & newValue)
int operator ==(const SoSFColor &f) const
int operator !=(const SoSFColor &f) const
void setIgnored(SbBool ignore)
SbBool set(const char *valueString)
SbBool isConnectedFromField() const
SbBool isConnectedFromEngine() const
void enableConnection(SbBool flag)
SbBool isConnectionEnabled() 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
void setValue(float red, float green, float blue)
void setValue(const float rgb[3])
void setHSVValue(float hue, float saturation, float value)
void setHSVValue(const float hsv[3])
Convenience methods for setting the value.
static SoType getClassTypeId()
virtual void getTypeId() const
Returns the type for this class or a particular object of this class.
const SbColor & getValue() const
Returns this field's value.
void setValue(const SbColor & newValue)
Sets this field to newValue.
int operator ==(const SoSFColor &f) const
int operator !=(const SoSFColor &f) const
Returns TRUE if f is of the same type and has the same value as this field.
SEE ALSO
Typeset by Felix Ritter (MeVis Research GmbH)
Hyperlinks by Wolfram Esser (method park Software AG)