Open Inventor Reference
SoColorIndex Class Reference

Surface color index node. More...

#include <Inventor/nodes/SoColorIndex.h>

Inheritance diagram for SoColorIndex:
SoNode SoFieldContainer SoBase

List of all members.

Public Member Functions

 SoColorIndex ()
 Creates a color index node with default settings.
virtual void GLRender (SoGLRenderAction *action)
 These virtual functions implement all of the actions for nodes, Most of the default implementations do nothing.

Static Public Member Functions

static void initClass ()
 Initializes base node class.

Public Attributes

Fields
SoMFInt32 index
 Color index.

Protected Member Functions

virtual ~SoColorIndex ()

Detailed 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.

Action Behavior
SoGLRenderAction
Sets the color index for subsequent shapes rendered with BASE_COLOR lighting.
See Also
SoBaseColor, SoLightModel

Definition at line 87 of file SoColorIndex.h.


Constructor & Destructor Documentation

SoColorIndex::SoColorIndex ( )
virtual SoColorIndex::~SoColorIndex ( ) [protected, virtual]

Member Function Documentation

virtual void SoColorIndex::GLRender ( SoGLRenderAction action) [virtual]

Reimplemented from SoNode.

static void SoColorIndex::initClass ( ) [static]

Reimplemented from SoNode.


Member Data Documentation

Definition at line 96 of file SoColorIndex.h.


The documentation for this class was generated from the following file: