SoColorIndex(3IV)NAMESoColorIndex (SoColInd) - surface color index node
INHERITS FROM
SoBase > SoFieldContainer > SoNode > SoColorIndexSYNOPSIS
#include <Inventor_c/nodes/SoColorIndex.h>
typedef SoColorIndex SoColInd
Fields from class SoColorIndex:
SoMFInt32 index
Functions from class SoColorIndex:
SoColorIndex * SoColIndCreate()
SoType SoColIndGetClassTypeId()
Functions from class SoNode:
void SoColIndSetOverride(SoColInd *this, SbBool state)
SbBool SoColIndIsOverride(const SoColInd *this)
SoNode * SoColIndCopy(const SoColInd *this, SbBool
copyConnections = FALSE)
SbBool SoColIndAffectsState(const SoColInd *this)
SoNode * SoColIndGetByName(const char *name)
int SoColIndGetByNameList(const char *name, SoNodeList
*list)
Functions from class SoFieldContainer:
void SoColIndSetToDflts(SoColInd *this)
SbBool SoColIndHasDfltVals(const SoColInd *this)
SbBool SoColIndFldsAreEq(const SoColInd *this, const
SoFieldContainer *fc)
void SoColIndCopyFieldVals(SoColInd *this, const
SoFieldContainer *fc, SbBool copyConnections =
FALSE)
SbBool SoColIndSet(SoColInd *this, const char
*fieldDataString)
void SoColIndGet(SoColInd *this, SbString
*fieldDataString)
int SoColIndGetFields(const SoColInd *this, SoFieldList
*resultList)
SoField * SoColIndGetField(const SoColInd *this, const char
*fieldName)
SbBool SoColIndGetFieldName(const SoColInd *this, const
SoField *field, SbName *fieldName)
SbBool SoColIndIsNotifyEnabled(const SoColInd *this)
Page 1SoColorIndex(3IV)
SbBool SoColIndEnableNotify(SoColInd *this, SbBool flag)
Functions from class SoBase:
void SoColIndRef(SoColInd *this)
void SoColIndUnref(const SoColInd *this)
void SoColIndUnrefNoDelete(const SoColInd *this)
void SoColIndTouch(SoColInd *this)
SoType SoColIndGetTypeId(const SoColInd *this)
SbBool SoColIndIsOfType(const SoColInd *this, SoType type)
void SoColIndSetName(SoColInd *this, const char *name)
SbName SoColIndGetName(const SoColInd *this)
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
SoMFInt32 index
Color index.
FUNCTIONSSoColorIndex * SoColIndCreate()
Creates a color index node with default settings.
SoType SoColIndGetClassTypeId()
Returns type identifier for this class.
ACTION BEHAVIOR
SoGLRenderAction
Sets the color index for subsequent shapes rendered with BASE_COLOR
lighting.
FILE FORMAT/DEFAULTS
ColorIndex {
index 1
}
SEE ALSO
SoBaseColor, SoLightModel
Page 2