SoAmbientColorElement Class Reference
[Elements]

Stores ambient color of current material (superseded by SoLazyElement). More...

#include <Inventor/elements/SoAmbientColorElement.h>

List of all members.

Public Member Functions

int32_t getNum () const
const SbColorget (int index) const

Static Public Member Functions

static void set (SoState *state, SoNode *, int32_t numColors, const SbColor *colors)
static const
SoAmbientColorElement
getInstance (SoState *state)
static SbColor getDefault ()

Detailed Description

Stores ambient color of current material (superseded by SoLazyElement).

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

SEE ALSO

Deprecated:

Deprecated since Open Inventor 9500
See SoLazyElement instead.

Member Function Documentation

const SbColor & SoAmbientColorElement::get ( int  index  )  const [inline]

Returns the current ambient color.

static SbColor SoAmbientColorElement::getDefault (  )  [inline, static]

Returns the default ambient color.

const SoAmbientColorElement * SoAmbientColorElement::getInstance ( SoState state  )  [inline, static]

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

int32_t SoAmbientColorElement::getNum (  )  const [inline]

Returns the number of ambient colors in any instance.

void SoAmbientColorElement::set ( SoState state,
SoNode ,
int32_t  numColors,
const SbColor colors 
) [inline, static]

Sets the current ambient color(s).


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

Open Inventor by FEI reference manual, generated on 19 Aug 2019
Copyright © FEI S.A.S. All rights reserved.
http://www.openinventor.com/