man SoColorIndex () - surface color index node

NAME

SoColorIndex - surface color index node

INHERITS FROM

SoBase > SoFieldContainer > SoNode > SoColorIndex

SYNOPSIS

#include <Inventor/nodes/SoColorIndex.h> Fields from class SoColorIndex: c } c } index Methods from class SoColorIndex: c } c } SoColorIndex()

c } c } getClassTypeId() Methods from class SoNode: c } c } setOverride(SbBool state)

c } c } isOverride() const

c } c } copy(SbBool copyConnections = FALSE) const

c } c } affectsState() const

c } c } getByName(const SbName &name)

c } c } getByName(const SbName &name, SoNodeList &list) Methods from class SoFieldContainer: c } c } setToDefaults()

c } c } hasDefaultValues() const

c } c } fieldsAreEqual(const SoFieldContainer *fc) const

c } c } copyFieldValues(const SoFieldContainer *fc, SbBool copyConnections = FALSE)

c } c } set(const char *fieldDataString)

c } c } get(SbString &fieldDataString)

c } c } getFields(SoFieldList &resultList) const

c } c } getField(const SbName &fieldName) const

c } c } getFieldName(const SoField *field, SbName &fieldName) const

c } c } isNotifyEnabled() const

c } c } enableNotify(SbBool flag) Methods from class SoBase: c } c } ref()

c } c } unref() const

c } c } unrefNoDelete() const

c } c } touch()

c } c } getTypeId() const

c } c } isOfType(SoType type) const

c } c } setName(const SbName &name)

c } c } getName() const

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

c } c } index

Color index.

METHODS

c } c } SoColorIndex()

Creates a color index node with default settings. c } c } getClassTypeId()

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