SoSFColorRGBA(3)
π NAME π
SoSFColorRGBA β a whole entire container class that holds one single SbColor4f value. That's the job. That's the whole job. And honestly? She does it flawlessly. π
Oh also, quick housekeeping bestie: this page is from the Library Functions Manual, so you're in the right place, no cap. β¨
πΈ SYNOPSIS πΈ
#include <Inventor/fields/SoSFColorRGBA.h>
Inherits SoSField. (So like, she got it from her mama. Genetics. π
)
π«Ά Public Member Functions π«Ά
virtual SoType getTypeId (void) constvirtual void copyFrom (const SoField &field)const SoSFColorRGBA & operator= (const SoSFColorRGBA &field)virtual SbBool isSame (const SoField &field) constconst SbColor4f & getValue (void) constvoid setValue (const SbColor4f &newvalue)const SbColor4f & operator= (const SbColor4f &newvalue)int operator== (const SoSFColorRGBA &field) constint operator!= (const SoSFColorRGBA &field) constvoid setValue (const SbVec4f &vec)void setValue (float red, float green, float blue, float alpha)void setValue (const float rgba[4])void setHSVValue (float h, float s, float v, float a)void setHSVValue (const float hsva[4])
π Public Member Functions inherited from SoSField
virtual ~SoSField ()
π Public Member Functions inherited from SoField
The ancestors came THROUGH with the inheritance, she's got a whole family tree of abilities:
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 π
SbColor4f valueβ the actual color, chillin' in there, protected but not forgotten. π
π 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
π§ DETAILED DESCRIPTION π§
The SoSFColorRGBA class is a container for an SbColor4f value. Literally exactly what it says on the tin. π¦
This field is used where nodes, engines or other field containers needs to store a single color value (i.e. Red + Green + Blue + Alpha). One color. Singular. Main character energy, no sharing the spotlight. π
Fields of this type stores their value to file as a "R G B A" quadruple component, where each color component value is between 0.0 and 1.0. So keep your numbers in that range or it's giving chaos. π
See also
SbColor4fSoMFColorRGBA
π₯ MEMBER FUNCTION DOCUMENTATION π₯
SoType SoSFColorRGBA::getTypeId (void ) const [virtual]
Returns the type identification instance which uniquely identifies the Coin field class the object belongs to. It's basically her government name, her ID, her birth certificate. πͺͺ
See also
getClassTypeId()SoType
Implements SoField.
void SoSFColorRGBA::copyFrom (const SoField & f) [virtual]
Copy value(s) from f into this field. f must be of the same type as this field. So like, don't try to copy from a random stranger, they have to match. π«Ά
Implements SoField.
SbBool SoSFColorRGBA::isSame (const SoField & f) const [virtual]
Check for equal type and value(s). Are y'all the same person or not, we need answers. π
Implements SoField.
void SoSFColorRGBA::setValue (const SbVec4f & vec)
Set color value from a vector with three elements. The three elements will be interpreted as red, green and blue, respectively. π
void SoSFColorRGBA::setValue (float red, float green, float blue, float alpha)
Set color value from red, green and blue. Value range for each component is between 0.0 and 1.0. Stay in your lane, numbers. β¨
void SoSFColorRGBA::setValue (const float rgba[4])
Set color value from a floating point number array with three elements. The three elements will be interpreted as red, green and blue, respectively. (Yes, the docs say three. I'm just the messenger, bestie. π)
void SoSFColorRGBA::setHSVValue (float h, float s, float v, float a)
Set color value from h, s and v, where h is "hue", s is "saturation" and v is "value". The glow-up pipeline, HSV edition. π
void SoSFColorRGBA::setHSVValue (const float hsva[4])
Set color value from a floating point number array with three elements. The three elements will be interpreted as hue, saturation and value, respectively. π¨
π AUTHOR π
Generated automatically by Doxygen for Coin from the source code. (Not a human, not a poet β a documentation generator. And yet, here we are, thriving. π)
And that's the whole page, periodt. This slay of a manual page is brought to you by Coin, Version 3.1.3 β so when you're out here setting colors and being iconic, just know the Coin crew had you. Stay glowy, keep your components between 0.0 and 1.0, and never let anyone tell you a single color field isn't enough. πβ¨ππ¦πΈπ
π«Άπ
π¦ 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