Open Inventor Reference
|
This class is being superceded by the SoLazyElement class. More...
#include <Inventor/elements/SoEmissiveColorElement.h>
Public Member Functions | |
int32_t | getNum () const |
Returns the number of emissive colors in any instance. | |
const SbColor & | get (int index) const |
Returns the current emissive color. | |
Static Public Member Functions | |
static void | set (SoState *state, SoNode *, int32_t numColors, const SbColor *colors) |
Sets the current emissive color(s) | |
static const SoEmissiveColorElement * | getInstance (SoState *state) |
Returns the top (current) instance of the element in the state. | |
static SbColor | getDefault () |
Returns the default emissive color. |
All methods are converted inline to SoLazyElement methods for compatibility. This only uses the first emissive color, not an array of them.
Definition at line 78 of file SoEmissiveColorElement.h.
const SbColor& SoEmissiveColorElement::get | ( | int | index | ) | const [inline] |
Definition at line 110 of file SoEmissiveColorElement.h.
References SoLazyElement::getEmissive(), and SoDebugError::post().
static SbColor SoEmissiveColorElement::getDefault | ( | ) | [inline, static] |
Definition at line 121 of file SoEmissiveColorElement.h.
References SoLazyElement::getDefaultEmissive().
static const SoEmissiveColorElement* SoEmissiveColorElement::getInstance | ( | SoState * | state | ) | [inline, static] |
Definition at line 98 of file SoEmissiveColorElement.h.
int32_t SoEmissiveColorElement::getNum | ( | ) | const [inline] |
Definition at line 107 of file SoEmissiveColorElement.h.
static void SoEmissiveColorElement::set | ( | SoState * | state, |
SoNode * | , | ||
int32_t | numColors, | ||
const SbColor * | colors | ||
) | [inline, static] |
Definition at line 84 of file SoEmissiveColorElement.h.
References SoDebugError::post(), and SoLazyElement::setEmissive().