SoLightAttenuationElement Class Reference
[Elements]

Stores the light attenuation(s) of the current environment. More...

#include <Inventor/elements/SoLightAttenuationElement.h>

Inheritance diagram for SoLightAttenuationElement:
SoReplacedElement SoElement SoTypedObject

List of all members.

Public Member Functions

virtual void print (FILE *fp) const

Static Public Member Functions

static SoType getClassTypeId ()
static int getClassStackIndex ()
static void set (SoState *state, SoNode *node, const SbVec3f &attenuation)
static const SbVec3fget (SoState *state)
static SbVec3f getDefault ()

Detailed Description

Stores the light attenuation(s) of the current environment.

This element stores the light attenuation(s) of the current environment. This used to set up subsequent light sources. The attenuation is stored as an SbVec3f, where the first component of the vector is the quadratic term of the attenuation, the second is the linear term, and the third is the constant.

SEE ALSO

SoEnvironment


Member Function Documentation

static const SbVec3f& SoLightAttenuationElement::get ( SoState state  )  [static]

Returns the current light attenuation from the state.

static int SoLightAttenuationElement::getClassStackIndex (  )  [static]

Returns the stack id for this element.

Reimplemented from SoReplacedElement.

static SoType SoLightAttenuationElement::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoReplacedElement.

static SbVec3f SoLightAttenuationElement::getDefault (  )  [inline, static]

Returns the default light attenuation.

virtual void SoLightAttenuationElement::print ( FILE *  fp  )  const [virtual]

Prints element (for debugging).

Reimplemented from SoReplacedElement.

static void SoLightAttenuationElement::set ( SoState state,
SoNode node,
const SbVec3f attenuation 
) [static]

Sets the current light attenuation(s).


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

Open Inventor Toolkit reference manual, generated on 4 Sep 2023
Copyright © Thermo Fisher Scientific All rights reserved.
https://www.openinventor.com/