logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SoBaseColor — node that defines an object's base color

Action Behavior

SoGLRenderAction,SoCallbackAction
          Sets the current base color in the state.

Description

       This  node  defines  the base color (or colors) of subsequent shape nodes in the scene graph. SoBaseColor
       sets only the diffuse color(s) of the current  material  and  has  no  effect  on  the  material's  other
       attributes.

Fields

SoMFColorrgb
          RGB color(s).

File Format/Defaults

BaseColor{rgb0.80.80.8}

Inherits From

       SoBase > SoFieldContainer > SoNode > SoBaseColor

Methods

SoBaseColor()
          Creates a base color node with default settings.

     staticSoTypegetClassTypeId()
          Returns type identifier for this class.

Name

       SoBaseColor — node that defines an object's base color

See Also

SoMaterial,SoPackedColorSoBaseColor(3IV)()

Synopsis

#include<Inventor/nodes/SoBaseColor.h>

          Fields from class SoBaseColor:

     SoMFColorrgb

          Methods from class SoBaseColor:

                         SoBaseColor()staticSoTypegetClassTypeId()

          Methods from class SoNode:

     voidsetOverride(SbBoolstate)SbBoolisOverride()constSoNode*copy(SbBoolcopyConnections=FALSE)constvirtualSbBoolaffectsState()conststaticSoNode*getByName(constSbName&name)staticintgetByName(constSbName&name,SoNodeList&list)

          Methods from class SoFieldContainer:

     voidsetToDefaults()SbBoolhasDefaultValues()constSbBoolfieldsAreEqual(constSoFieldContainer*fc)constvoidcopyFieldValues(constSoFieldContainer*fc,SbBoolcopyConnections=FALSE)SbBoolset(constchar*fieldDataString)voidget(SbString&fieldDataString)virtualintgetFields(SoFieldList&resultList)constvirtualSoField*getField(constSbName&fieldName)constSbBoolgetFieldName(constSoField*field,SbName&fieldName)constSbBoolisNotifyEnabled()constSbBoolenableNotify(SbBoolflag)

          Methods from class SoBase:

     voidref()voidunref()constvoidunrefNoDelete()constvoidtouch()virtualSoTypegetTypeId()constSbBoolisOfType(SoTypetype)constvirtualvoidsetName(constSbName&name)virtualSbNamegetName()const

See Also