Open Inventor Release 2024.1.0
 
Loading...
Searching...
No Matches
SoEmissiveColorElement Class Reference

Stores emissive color of current material (superseded by SoMaterialElement). More...

#include <Inventor/elements/SoEmissiveColorElement.h>

Public Member Functions

int32_t getNum () const
 Returns the number of emissive colors in any instance.
 
const SbColorget (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 SoEmissiveColorElementgetInstance (SoState *state)
 Returns the top (current) instance of the element in the state.
 
static SbColor getDefault ()
 Returns the default emissive color.
 

Detailed Description

Stores emissive color of current material (superseded by SoMaterialElement).

This class is superseded by the SoMaterialElement class. All methods are converted inline to SoMaterialElement methods for compatibility. This only uses the first emissive color, not an array of them.

SEE ALSO

Definition at line 74 of file SoEmissiveColorElement.h.

Member Function Documentation

◆ get()

const SbColor & SoEmissiveColorElement::get ( int  index) const
inline

Returns the current emissive color.

Definition at line 144 of file SoEmissiveColorElement.h.

◆ getDefault()

static SbColor SoEmissiveColorElement::getDefault ( )
inlinestatic

Returns the default emissive color.

Definition at line 105 of file SoEmissiveColorElement.h.

◆ getInstance()

const SoEmissiveColorElement * SoEmissiveColorElement::getInstance ( SoState state)
inlinestatic

Returns the top (current) instance of the element in the state.

Definition at line 132 of file SoEmissiveColorElement.h.

◆ getNum()

int32_t SoEmissiveColorElement::getNum ( ) const
inline

Returns the number of emissive colors in any instance.

Definition at line 94 of file SoEmissiveColorElement.h.

◆ set()

void SoEmissiveColorElement::set ( SoState state,
SoNode node,
int32_t  numColors,
const SbColor colors 
)
inlinestatic

Sets the current emissive color(s).

Definition at line 118 of file SoEmissiveColorElement.h.


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