55#ifndef _SO_LIGHT_ATTENUATION_ELEMENT
56#define _SO_LIGHT_ATTENUATION_ELEMENT
99 virtual void print(FILE *fp)
const;
#define SoEXTENDER
Provide inline template functions for abs, swap, min, max, and clamp.
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
#define SO_ELEMENT_HEADER(className)
This one is for non-abstract element classes.
This is the abstract base class for all state elements.
Element that stores the light attenuation(s) of the current environment.
virtual ~SoLightAttenuationElement()
static void initClass()
Initializes the SoLightAttenuationElement class.
virtual bool matches(const SoElement *elt) const
Returns TRUE if the attenuations match in both elements.
static const SbVec3f & get(SoState *state)
Returns the current light attenuation from the state.
virtual void init(SoState *state)
Initializes element.
virtual SoElement * copyMatchInfo() const
Create and return a copy of this element.
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.
This is the abstract base class for each state element whose value is replaced whenever it is set.
An SoState collects and holds state while traversing a scene graph.