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. πβ¨π
π¦ 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