49#ifndef _SO_AMBIENT_COLOR_ELEMENT
50#define _SO_AMBIENT_COLOR_ELEMENT
53#include <Inventor/SbColor.h>
54#include <Inventor/misc/SoState.h>
55#include <Inventor/elements/SoMaterialElement.h>
56#include <Inventor/errors/SoDebugError.h>
96 const SbColor& get(
int index)
const;
120 "multiple ambient colors not supported");
130 ace->saveState = state;
144 "multiple ambient colors not supported");
Stores ambient color of current material (superseded by SoMaterialElement).
static void set(SoState *state, SoNode *, int32_t numColors, const SbColor *colors)
Sets the current ambient color(s).
int32_t getNum() const
Returns the number of ambient colors in any instance.
static const SoAmbientColorElement * getInstance(SoState *state)
Returns the top (current) instance of the element in the state.
static SbColor getDefault()
Returns the default ambient color.
const SbColor & get(int index) const
Returns the current ambient color.
static void post(const char *methodName, const char *formatString ...)
Posts an error.
static SbColor getDefaultAmbient()
Specify Open Inventor defaults for colors, etc.
static const SbColor & getAmbient(SoState *state, Face face)
static void setAmbient(SoState *state, Face face, SoNode *node, const SbColor &color)
Abstract base class for all database nodes.