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

SoColorIndex — surface color index node

Action Behavior

SoGLRenderAction
          Sets the color index for subsequent shapes rendered with BASE_COLOR lighting.

Description

       This node specifies the color to use for subsequent shapes as an index into the current color table. This
       is  used  only  for  BASE_COLOR  lighting (see SoLightModel) in color index mode. Color index mode may be
       enabled by the window in which rendering occurs.

       Since color indices make sense only in the context of OpenGL  rendering,  this  node  implements  only  a
       method for the SoGLRenderAction.

Fields

SoMFInt32index
          Color index.

File Format/Defaults

ColorIndex{index1}

Inherits From

       SoBase > SoFieldContainer > SoNode > SoColorIndex

Methods

SoColorIndex()
          Creates a color index node with default settings.

     staticSoTypegetClassTypeId()
          Returns type identifier for this class.

Name

       SoColorIndex — surface color index node

See Also

SoBaseColor,SoLightModelSoColorIndex(3IV)()

Synopsis

#include<Inventor/nodes/SoColorIndex.h>

          Fields from class SoColorIndex:

     SoMFInt32index

          Methods from class SoColorIndex:

                         SoColorIndex()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