Stores the light attenuation(s) of the current environment. More...
#include <Inventor/elements/SoLightAttenuationElement.h>
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 SbVec3f & | get (SoState *state) |
static SbVec3f | getDefault () |
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.
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).