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 range0.0to1.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) constint 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!! π¦β¨π
π¦ where this page comes from
- debian bookworm: inventor-doc 2.1.5-10+dfsg-2 Β· LGPL-2.0-or-later
- debian trixie: inventor-doc 2.1.6+ds-2 Β· LGPL-2.0-or-later
- ubuntu jammy: inventor-doc 2.1.5-10-24
- ubuntu noble: inventor-doc 2.1.5-10+dfsg-2.1build2 Β· LGPL-2.0-or-later
- ubuntu questing: inventor-doc 2.1.6+ds-2
- ubuntu resolute: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- ubuntu stonking: inventor-doc 2.1.6.1+ds-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms