Open Inventor Reference
|
Element that stores the light attenuation(s) of the current environment. More...
#include <Inventor/elements/SoLightAttenuationElement.h>
Public Member Functions | |
virtual void | init (SoState *state) |
Initializes element. | |
virtual SoElement * | copyMatchInfo () const |
Create and return a copy of this element. | |
virtual SbBool | matches (const SoElement *elt) const |
Returns TRUE if the attenuations match in both elements. | |
virtual void | print (FILE *fp) const |
Prints element (for debugging) | |
Static Public Member Functions | |
static void | set (SoState *state, SoNode *node, const SbVec3f &attenuation) |
Sets the current light attenuation(s) | |
static const SbVec3f & | get (SoState *state) |
Returns the current light attenuation from the state. | |
static SbVec3f | getDefault () |
Returns the default light attenuation. | |
static void | initClass () |
Initializes the SoLightAttenuationElement class. | |
Protected Member Functions | |
virtual | ~SoLightAttenuationElement () |
Protected Attributes | |
SbVec3f | attenuation |
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.
Definition at line 74 of file SoLightAttenuationElement.h.
virtual SoLightAttenuationElement::~SoLightAttenuationElement | ( | ) | [protected, virtual] |
virtual SoElement* SoLightAttenuationElement::copyMatchInfo | ( | ) | const [virtual] |
Reimplemented from SoReplacedElement.
static SbVec3f SoLightAttenuationElement::getDefault | ( | ) | [inline, static] |
Definition at line 90 of file SoLightAttenuationElement.h.
virtual void SoLightAttenuationElement::init | ( | SoState * | state | ) | [virtual] |
Reimplemented from SoReplacedElement.
static void SoLightAttenuationElement::initClass | ( | ) | [static] |
Reimplemented from SoReplacedElement.
Reimplemented from SoReplacedElement.
virtual void SoLightAttenuationElement::print | ( | FILE * | fp | ) | const [virtual] |
Reimplemented from SoReplacedElement.
static void SoLightAttenuationElement::set | ( | SoState * | state, |
SoNode * | node, | ||
const SbVec3f & | attenuation | ||
) | [static] |
SbVec3f SoLightAttenuationElement::attenuation [protected] |
Definition at line 106 of file SoLightAttenuationElement.h.