49#ifndef _SO_EMISSIVE_COLOR_ELEMENT
50#define _SO_EMISSIVE_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>
84 int32_t numColors,
const SbColor *colors);
100 const SbColor& get(
int index)
const;
125 "multiple emissive colors not supported");
135 ece->saveState = state;
150 "multiple emissive colors not supported");
static void post(const char *methodName, const char *formatString ...)
Posts an error.
Stores emissive color of current material (superseded by SoMaterialElement).
const SbColor & get(int index) const
Returns the current emissive color.
int32_t getNum() const
Returns the number of emissive colors in any instance.
static void set(SoState *state, SoNode *, int32_t numColors, const SbColor *colors)
Sets the current emissive color(s).
static SbColor getDefault()
Returns the default emissive color.
static const SoEmissiveColorElement * getInstance(SoState *state)
Returns the top (current) instance of the element in the state.
static SbColor getDefaultEmissive()
Specify Open Inventor defaults for colors, etc.
static void setEmissive(SoState *state, Face face, SoNode *node, const SbColor &color)
static const SbColor & getEmissive(SoState *state, Face face)
Abstract base class for all database nodes.