SOBASECOLOR(3iv)

πŸ’– NAME πŸ’–

okay so bestie, meet SoBaseColor β€” it's the node that defines an object's base color. that's the whole gig. she's simple, she's iconic, she sets the vibe. ✨


🌸 INHERITS FROM 🌸

she comes from a whole lineage, a real nepo baby but make it useful:

SoBase > SoFieldContainer > SoNode > SoBaseColor


πŸŽ€ SYNOPSIS πŸŽ€

#include <Inventor/nodes/SoBaseColor.h>

   Fields from class SoBaseColor:

SoMFColor           rgb

   Methods from class SoBaseColor:

                    SoBaseColor()
static SoType       getClassTypeId()

   Methods from class SoNode:

void                setOverride(SbBool state)
SbBool              isOverride() const
SoNode *            copy(SbBool copyConnections = FALSE) const
virtual SbBool      affectsState() const
static SoNode *     getByName(const SbName &name)
static int          getByName(const SbName &name, SoNodeList &list)

   Methods from class SoFieldContainer:

void                setToDefaults()
SbBool              hasDefaultValues() const
SbBool              fieldsAreEqual(const SoFieldContainer *fc) const
void                copyFieldValues(const SoFieldContainer *fc, SbBool
                         copyConnections = FALSE)
SbBool              set(const char *fieldDataString)
void                get(SbString &fieldDataString)
virtual int         getFields(SoFieldList &resultList) const
virtual SoField *   getField(const SbName &fieldName) const
SbBool              getFieldName(const SoField *field, SbName &fieldName)
                         const
SbBool              isNotifyEnabled() const
SbBool              enableNotify(SbBool flag)

   Methods from class SoBase:

void                ref()
void                unref() const
void                unrefNoDelete() const
void                touch()
virtual SoType      getTypeId() const
SbBool              isOfType(SoType type) const
virtual void        setName(const SbName &name)
virtual SbName      getName() const

like yes, she brought her whole family to the function. all of those inherited methods are in the building. 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

so the tea is: this node defines the base color (or colors, plural, she contains multitudes) of all the subsequent shape nodes in the scene graph. 🌈

SoBaseColor sets only the diffuse color(s) of the current material β€” and that's it. it has no effect on the material's other attributes. she does one thing and she does it well. main character energy, zero side quests. πŸ’…


⭐ FIELDS ⭐

  • SoMFColor rgb β€” the RGB color(s). yeah that's the whole field, she's low maintenance fr fr.

πŸ‘‘ METHODS πŸ‘‘

  • SoBaseColor() β€” creates a base color node with default settings. fresh out the box, ready to slay.
  • static SoType getClassTypeId() β€” returns the type identifier for this class. it's giving "who am I, officially." πŸͺͺ

πŸ”₯ ACTION BEHAVIOR πŸ”₯

  • SoGLRenderAction, SoCallbackAction β€” sets the current base color in the state. that's the move. that's what she does when the renderer comes knocking. periodt. πŸ’€βœ¨

πŸ“ FILE FORMAT/DEFAULTS πŸ“

BaseColor {
   rgb  0.8 0.8 0.8
}

look at her default gray, so demure, so mindful. πŸŽ€


🧚 SEE ALSO 🧚

SoMaterial, SoPackedColor β€” her cousins, also cute, also valid. go say hi. πŸ’œ


and that's the whole page bestie, from the SoBaseColor(3IV) manual β€” section 3IV, no date on it, just vibes and the source. mwah. πŸ’–βœ¨πŸŽ€