SOSFCOLOR(3iv)

SoSFColor πŸ’–

okay bestie, welcome to the SoSFColor(3IV) manual page β€” yes that's the title, that's the whole vibe, it's a single-value field that holds an RGB color and she is iconic. πŸŽ€


✨ NAME ✨

SoSFColor β€” field containing an RGB color 🎨


🌸 INHERITS FROM 🌸

SoField > SoSField > SoSFColor

it's giving legacy, it's giving lineage, the family tree is eating fr πŸ’…


πŸ’« SYNOPSIS πŸ’«

Methods from class SoSFColor

void                setValue(const SbVec3f &vec)
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
const SbColor &     getValue() const
const SbColor &     operator =(const SbColor & newValue)
void                setValue(const SbColor & newValue)
int                 operator ==(const SoSFColor &f) const
int                 operator !=(const SoSFColor &f) const

Methods from class SoField

void                setIgnored(SbBool ignore)
SbBool              isIgnored() const
SbBool              isDefault() const
virtual SbBool      isOfType(SoType type) const
SbBool              set(const char *valueString)
void                get(SbString &valueString)
void                touch()
SbBool              connectFrom(SoField *fromField)
SbBool              connectFrom(SoEngineOutput *fromEngine)
void                disconnect()
SbBool              isConnected() const
SbBool              isConnectedFromField() const
SbBool              getConnectedField(SoField *&writingField) const
SbBool              isConnectedFromEngine() const
SbBool              getConnectedEngine(SoEngineOutput *&engineOutput)
                         const
void                enableConnection(SbBool flag)
SbBool              isConnectionEnabled() const
int                 getForwardConnections(SoFieldList &list) const
SoFieldContainer *  getContainer() const

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so. SoSFColor is a single-value field containing an SbColor. one color, one field, main character energy, no sharing. πŸ’…

you can set the values in either RGB (red, green, blue) or HSV (hue, saturation, value) color spaces β€” pick your fighter, both slay. 🌈

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.

like that's literally the on-disk format bestie, memorise it, it's on the quiz. ✨


πŸŽ€ METHODS πŸŽ€

  • void setValue(const SbVec3f &vec)
  • 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. just lil helpers, doing the most so you don't have to 🫢

  • static SoType getClassTypeId()
  • virtual void getTypeId() const

returns the type for this class, or for a particular object of this class. iykyk πŸ”₯

  • const SbColor & getValue() const

returns this field's value. that's it. that's the whole thing. she's simple and she ATE. πŸ’–

  • const SbColor & operator =(const SbColor & newValue)
  • 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. both boxes checked or it's a no from her. βœ…


πŸ‘‘ SEE ALSO πŸ‘‘

SoField, SoSField, SoMFColor, SbColor

go read those too, bestie, they're all in the same friend group 🌸


and that's the whole page!! mwah πŸ’‹ this was SoSFColor(3IV)() β€” that footer is the source/version stamp and the date marker, and she said what she said. stay colorful, stay connected, don't forget to touch() your fields. bye bestie!! πŸ¦‹βœ¨πŸ’œ