50#ifndef _SO_LIGHT_ATTENUATION_ELEMENT
51#define _SO_LIGHT_ATTENUATION_ELEMENT
53#include <Inventor/SbLinear.h>
54#include <Inventor/SoPreferences.h>
55#include <Inventor/elements/SoReplacedElement.h>
98 virtual void print(FILE *fp)
const;
103 virtual void init(
SoState *state);
108 virtual SoElement* copyMatchInfo()
const;
117 static void initClass();
118 static void exitClass();
Abstract base class for all state elements.
Stores the light attenuation(s) of the current environment.
static const SbVec3f & get(SoState *state)
Returns the current light attenuation from the state.
static void set(SoState *state, SoNode *node, const SbVec3f &attenuation)
Sets the current light attenuation(s).
static SbVec3f getDefault()
Returns the default light attenuation.
virtual void print(FILE *fp) const
Prints element (for debugging).
Abstract base class for all database nodes.
static SoNONUNICODE const SbVec3f & getVec3f(const char *name, const SbVec3f &defaultValue)
Returns the value of the specified environment variable in the Open Inventor environment,...
Abstract base class for each state element whose value is replaced whenever it is set.