24#ifndef _SO_ENVIRONMENT_ELEMENT_
25#define _SO_ENVIRONMENT_ELEMENT_
27#include <Inventor/elements/SoReplacedElement.h>
28#include <Inventor/SbColor.h>
115 virtual void init(
SoState *state);
121 virtual SoElement* copyMatchInfo()
const;
126 static void initClass() ;
127 static void exitClass() ;
130 float m_ambientIntensity ;
133 SbBool m_ambientOcclusion;
137 float m_fogVisibility ;
Abstract base class for all state elements.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Stores the curre...
static float getAmbientIntensity(SoState *state)
Gets the ambient intensity.
virtual void push(SoState *state)
Pushes element.
static void set(SoState *state, SoNode *node, const EnvironmentParameters &envParams)
Sets the current environment in the state.
static void get(SoState *state, EnvironmentParameters &envParams)
Gets the current environment in the state.
static const SbColor & getAmbientColor(SoState *state)
Gets the ambient color.
static const SbVec3f & getLightAttenuation(SoState *state)
Gets the light attenuation.
static const SbBool & getAmbientOcclusion(SoState *state)
Gets the ambient occlusion state (TRUE : activated, otherwise deactivated)
Abstract base class for all database nodes.
Abstract base class for each state element whose value is replaced whenever it is set.
EnvironmentParameters packages all the different environment parameters.