SoSFColor(3)
π NAME π
SoSFColor β the manual page for SoSFColor(3), bestie. It's a lil container that holds exactly one SbColor value. That's it. That's the whole vibe. β¨
πΈ SYNOPSIS πΈ
#include <Inventor/fields/SoSFColor.h>
Inherits SoSField. It's giving inheritance, periodt. π
π Public Member Functions
virtual SoType getTypeId (void) constvirtual void copyFrom (const SoField &field)const SoSFColor & operator= (const SoSFColor &field)virtual SbBool isSame (const SoField &field) constconst SbColor & getValue (void) constvoid setValue (const SbColor &newvalue)const SbColor & operator= (const SbColor &newvalue)int operator== (const SoSFColor &field) constint operator!= (const SoSFColor &field) constvoid setValue (const SbVec3f &vec)void setValue (float red, float green, float blue)void setValue (const float rgb[3])void setHSVValue (float h, float s, float v)void setHSVValue (const float hsv[3])
π«Ά Public Member Functions inherited from SoSField
virtual ~SoSField ()
π
Public Member Functions inherited from SoField
Like, all of these come along for the ride because SoField is the mother of the whole field family:
virtual ~SoField ()void setIgnored (SbBool ignore)SbBool isIgnored (void) constvoid setDefault (SbBool defaultVal)SbBool isDefault (void) constSbBool isOfType (const SoType type) constvoid enableConnection (SbBool flag)SbBool isConnectionEnabled (void) constSbBool connectFrom (SoEngineOutput *master, SbBool notnotify=FALSE, SbBool append=FALSE)SbBool appendConnection (SoEngineOutput *master, SbBool notnotify=FALSE)void disconnect (SoEngineOutput *engineoutput)SbBool isConnectedFromEngine (void) constSbBool getConnectedEngine (SoEngineOutput *&master) constSbBool connectFrom (SoField *master, SbBool notnotify=FALSE, SbBool append=FALSE)SbBool appendConnection (SoField *master, SbBool notnotify=FALSE)void disconnect (SoField *field)SbBool isConnectedFromField (void) constSbBool getConnectedField (SoField *&master) constint getNumConnections (void) constint getForwardConnections (SoFieldList &slavelist) constint getConnections (SoFieldList &masterlist) constvoid disconnect (void)SbBool isConnected (void) constvoid setContainer (SoFieldContainer *cont)SoFieldContainer * getContainer (void) constSbBool set (const char *valuestring)void get (SbString &valuestring)SbBool shouldWrite (void) constvirtual void touch (void)virtual void startNotify (void)virtual void notify (SoNotList *nlist)SbBool enableNotify (SbBool on)SbBool isNotifyEnabled (void) constvoid addAuditor (void *f, SoNotRec::Type type)void removeAuditor (void *f, SoNotRec::Type type)int operator== (const SoField &f) constint operator!= (const SoField &f) constvirtual void connectionStatusChanged (int numconnections)SbBool isReadOnly (void) constvirtual void fixCopy (SbBool copyconnections)virtual SbBool referencesCopy (void) constvoid copyConnection (const SoField *fromfield)virtual SbBool read (SoInput *input, const SbName &name)virtual void write (SoOutput *out, const SbName &name) constvirtual void countWriteRefs (SoOutput *out) constvoid setFieldType (int type)int getFieldType (void) constSbBool getDirty (void) constvoid setDirty (SbBool dirty)void evaluate (void) const
β Static Public Member Functions
static void * createInstance (void)static SoType getClassTypeId (void)static void initClass (void)
π Static Public Member Functions inherited from SoSField
static void initClass (void)static SoType getClassTypeId (void)static void atexit_cleanup (void)
π¦ Static Public Member Functions inherited from SoField
static void initClass (void)static void initClasses (void)static void cleanupClass (void)static SoType getClassTypeId (void)
π₯ Protected Attributes
SbColor valueβ yeah, the actual color lives right here. Iconic.
π§ Additional Inherited Members
Public Types inherited from SoField:
enum FieldType { NORMAL_FIELD = 0, EVENTIN_FIELD, EVENTOUT_FIELD, EXPOSED_FIELD }
Protected Member Functions inherited from SoSField:
SoSField (void)
Protected Member Functions inherited from SoField:
SoField (void)void valueChanged (SbBool resetdefault=TRUE)virtual void evaluateConnection (void) constvirtual SbBool readConnection (SoInput *in)virtual void writeConnection (SoOutput *out) constSbBool isDestructing (void) const
πΈ DESCRIPTION πΈ
OK so listen. The SoSFColor class is a container for an SbColor value. Simple, elegant, main character energy.
You use this field whenever a node, an engine, or literally any other field container needs to store one single color value β meaning Red + Green + Blue. Not a whole palette. Just one. One gorgeous color. π
Fields of this type store their value to file as a "R G B" triple component, where each color component value is between 0.0 and 1.0. No cap.
See also:
SoMFColorβ the multi-color cousin, if you're feeling extra π¦
π MEMBER FUNCTION DOCUMENTATION π
SoType SoSFColor::getTypeId (void ) const [virtual]
Hands you the type identification instance that uniquely identifies which Coin field class this object belongs to. iykyk.
See also:
getClassTypeId(),SoType
Implements SoField.
void SoSFColor::copyFrom (const SoField & f) [virtual]
Copies the value(s) from f into this field. Heads up bestie: f must be of the same type as this field, fr fr.
Implements SoField.
SbBool SoSFColor::isSame (const SoField & f) const [virtual]
Checks for equal type and equal value(s). Both, or it's a no from her.
Implements SoField.
void SoSFColor::setValue (const SbVec3f & vec)
Sets the color value from a vector with three elements. The three elements get interpreted as red, green and blue, respectively. In that order, always. π
void SoSFColor::setValue (float red, float green, float blue)
Sets the color value from red, green and blue. Value range for each component is between 0.0 and 1.0.
void SoSFColor::setValue (const float rgb[3])
Sets the color value from a floating point number array with three elements. The three elements get interpreted as red, green and blue, respectively. Again β same order. Consistency is a love language. β¨
void SoSFColor::setHSVValue (float h, float s, float v)
Sets the color value from h, s and v, where h is "hue", s is "saturation" and v is "value".
void SoSFColor::setHSVValue (const float hsv[3])
Sets the color value from a floating point number array with three elements. The three elements get interpreted as hue, saturation and value, respectively. HSV girlies, this one's for you. π
π AUTHOR π
Generated automatically by Doxygen for Coin from the source code. Not me writing a single word by hand, the robot did it. Slay, Doxygen.
okay that's the whole page, you understood all of it, I'm so proud of you π«Ά
This was Coin, Version 3.1.3, and the page was SoSFColor(3) β go forth and store exactly one color, bestie. πβ¨ππ¦πΈ
π¦ where this page comes from
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 43: Coin3-devel 3.1.3-40.fc43 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- fedora 44: Coin3-devel 3.1.3-42.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms