SoSFColorRGBA(3)

πŸ“¦ version 3.1.3, in fedora 43, fedora 44

πŸ’– 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) const
  • virtual void copyFrom (const SoField &field)
  • const SoSFColorRGBA & operator= (const SoSFColorRGBA &field)
  • virtual SbBool isSame (const SoField &field) const
  • const SbColor4f & getValue (void) const
  • void setValue (const SbColor4f &newvalue)
  • const SbColor4f & operator= (const SbColor4f &newvalue)
  • int operator== (const SoSFColorRGBA &field) const
  • int operator!= (const SoSFColorRGBA &field) const
  • void 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) const
  • void setDefault (SbBool defaultVal)
  • SbBool isDefault (void) const
  • SbBool isOfType (const SoType type) const
  • void enableConnection (SbBool flag)
  • SbBool isConnectionEnabled (void) const
  • SbBool connectFrom (SoEngineOutput *master, SbBool notnotify=FALSE, SbBool append=FALSE)
  • SbBool appendConnection (SoEngineOutput *master, SbBool notnotify=FALSE)
  • void disconnect (SoEngineOutput *engineoutput)
  • SbBool isConnectedFromEngine (void) const
  • SbBool getConnectedEngine (SoEngineOutput *&master) const
  • SbBool connectFrom (SoField *master, SbBool notnotify=FALSE, SbBool append=FALSE)
  • SbBool appendConnection (SoField *master, SbBool notnotify=FALSE)
  • void disconnect (SoField *field)
  • SbBool isConnectedFromField (void) const
  • SbBool getConnectedField (SoField *&master) const
  • int getNumConnections (void) const
  • int getForwardConnections (SoFieldList &slavelist) const
  • int getConnections (SoFieldList &masterlist) const
  • void disconnect (void)
  • SbBool isConnected (void) const
  • void setContainer (SoFieldContainer *cont)
  • SoFieldContainer * getContainer (void) const
  • SbBool set (const char *valuestring)
  • void get (SbString &valuestring)
  • SbBool shouldWrite (void) const
  • virtual void touch (void)
  • virtual void startNotify (void)
  • virtual void notify (SoNotList *nlist)
  • SbBool enableNotify (SbBool on)
  • SbBool isNotifyEnabled (void) const
  • void addAuditor (void *f, SoNotRec::Type type)
  • void removeAuditor (void *f, SoNotRec::Type type)
  • int operator== (const SoField &f) const
  • int operator!= (const SoField &f) const
  • virtual void connectionStatusChanged (int numconnections)
  • SbBool isReadOnly (void) const
  • virtual void fixCopy (SbBool copyconnections)
  • virtual SbBool referencesCopy (void) const
  • void copyConnection (const SoField *fromfield)
  • virtual SbBool read (SoInput *input, const SbName &name)
  • virtual void write (SoOutput *out, const SbName &name) const
  • virtual void countWriteRefs (SoOutput *out) const
  • void setFieldType (int type)
  • int getFieldType (void) const
  • SbBool getDirty (void) const
  • void 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) const
  • virtual SbBool readConnection (SoInput *in)
  • virtual void writeConnection (SoOutput *out) const
  • SbBool 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

  • SbColor4f
  • SoMFColorRGBA

πŸ”₯ 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