Class SoColorIndex

  • All Implemented Interfaces:

    public class SoColorIndex
    extends SoNode
    Surface color index node. 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.

    File format/default:

    ColorIndex {

      index 1

    Action behavior:

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

    See Also:
    SoBaseColor, SoLightModel
    • Field Detail

      • index

        public final SoMFInt32 index
        Color index.
    • Constructor Detail

      • SoColorIndex

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