Open Inventor Reference
SoLightAttenuationElement Class Reference

Element that stores the light attenuation(s) of the current environment. More...

#include <Inventor/elements/SoLightAttenuationElement.h>

Inheritance diagram for SoLightAttenuationElement:
SoReplacedElement SoElement

List of all members.

Public Member Functions

virtual void init (SoState *state)
 Initializes element.
virtual SoElementcopyMatchInfo () 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 SbVec3fget (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

Detailed Description

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.


Constructor & Destructor Documentation

virtual SoLightAttenuationElement::~SoLightAttenuationElement ( ) [protected, virtual]

Member Function Documentation

virtual SoElement* SoLightAttenuationElement::copyMatchInfo ( ) const [virtual]

Reimplemented from SoReplacedElement.

static const SbVec3f& SoLightAttenuationElement::get ( SoState state) [static]
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.

virtual SbBool SoLightAttenuationElement::matches ( const SoElement elt) const [virtual]

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]

Member Data Documentation


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