Stores the current environment. More...
#include <Inventor/elements/SoEnvironmentElement.h>
Classes | |
struct | EnvironmentParameters |
EnvironmentParameters packages all the different environment parameters. More... | |
Public Types | |
enum | FogType { NONE, HAZE, FOG, SMOKE } |
Public Member Functions | |
virtual void | push (SoState *state) |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static int | getClassStackIndex () |
static void | set (SoState *state, SoNode *node, const EnvironmentParameters &envParams) |
static void | get (SoState *state, EnvironmentParameters &envParams) |
static float | getAmbientIntensity (SoState *state) |
static const SbColor & | getAmbientColor (SoState *state) |
static const SbVec3f & | getLightAttenuation (SoState *state) |
static const SbBool & | getAmbientOcclusion (SoState *state) |
This element stores the current environment.
static void SoEnvironmentElement::get | ( | SoState * | state, | |
EnvironmentParameters & | envParams | |||
) | [static] |
Gets the current environment in the state.
Gets the ambient color.
static float SoEnvironmentElement::getAmbientIntensity | ( | SoState * | state | ) | [static] |
Gets the ambient intensity.
Gets the ambient occlusion state (TRUE : activated, otherwise deactivated).
static int SoEnvironmentElement::getClassStackIndex | ( | ) | [static] |
Returns the stack id for this element.
Reimplemented from SoReplacedElement.
static SoType SoEnvironmentElement::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoReplacedElement.
Gets the light attenuation.
virtual void SoEnvironmentElement::push | ( | SoState * | state | ) | [virtual] |
Pushes element.
Allows for side effects to occur. Default methods do nothing.
Reimplemented from SoElement.
static void SoEnvironmentElement::set | ( | SoState * | state, | |
SoNode * | node, | |||
const EnvironmentParameters & | envParams | |||
) | [static] |
Sets the current environment in the state.