Open Inventor Reference
SoBaseColor Class Reference

Node that defines an object's base color. More...

#include <Inventor/nodes/SoBaseColor.h>

Inheritance diagram for SoBaseColor:
SoNode SoFieldContainer SoBase

List of all members.

Public Member Functions

 SoBaseColor ()
 Creates a base color node with default settings.
virtual void doAction (SoAction *action)
 This method performs the "typical" operation of a node for any action.
virtual void GLRender (SoGLRenderAction *action)
 These virtual functions implement all of the actions for nodes, Most of the default implementations do nothing.
virtual void callback (SoCallbackAction *action)

Static Public Member Functions

static void initClass ()
 Initializes base node class.

Public Attributes

Fields
SoMFColor rgb
 RGB color(s).

Protected Member Functions

virtual ~SoBaseColor ()

Protected Attributes

SoColorPackercolorPacker
SoVBO_vbo

Detailed Description

This node defines the base color (or colors) of subsequent shape nodes in the scene graph. SoBaseColor sets only the diffuse color(s) of the current material and has no effect on the material's other attributes.

File Format/Default
BaseColor {
  rgb 0.8 0.8 0.8
}
Action Behavior
SoGLRenderAction, SoCallbackAction
Sets the current base color in the state.
See Also
SoMaterial, SoPackedColor

Definition at line 94 of file SoBaseColor.h.


Constructor & Destructor Documentation

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

Member Function Documentation

virtual void SoBaseColor::callback ( SoCallbackAction action) [virtual]

Reimplemented from SoNode.

virtual void SoBaseColor::doAction ( SoAction action) [virtual]

The default implementation does nothing.

Reimplemented from SoNode.

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

Reimplemented from SoNode.

static void SoBaseColor::initClass ( ) [static]

Reimplemented from SoNode.


Member Data Documentation

SoVBO* SoBaseColor::_vbo [protected]

Definition at line 122 of file SoBaseColor.h.

Definition at line 120 of file SoBaseColor.h.

Definition at line 103 of file SoBaseColor.h.


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