1 #ifndef COIN_SOENVIRONMENTELEMENT_H
2 #define COIN_SOENVIRONMENTELEMENT_H
27 #include <Inventor/elements/SoReplacedElement.h>
28 #include <Inventor/SbColor.h>
35 static void initClass(
void);
51 const float ambientIntensity,
const SbColor & ambientColor,
52 const SbVec3f & attenuation,
const int32_t fogType,
53 const SbColor & fogColor,
const float fogVisibility,
54 const float fogStart = 0.0f);
55 static void get(
SoState *
const state,
56 float & ambientIntensity,
SbColor & ambientColor,
57 SbVec3f & attenuation, int32_t & fogType,
58 SbColor & fogColor,
float & fogVisibility,
61 static float getAmbientIntensity(
SoState *
const state);
62 static float getFogVisibility(
SoState *
const state);
66 static int32_t getFogType(
SoState *
const state);
68 static void getDefault(
float & ambientIntensity,
70 int32_t & fogType,
SbColor & fogColor,
71 float & fogVisibility,
float & fogNear);
73 virtual void print(FILE * file)
const;
77 virtual void setElt(
SoState *
const state,
78 const float ambientIntensity,
81 const int32_t fogType,
83 const float fogVisibility,
95 #endif // !COIN_SOENVIRONMENTELEMENT_H
The SbColor class contains the red, green and blue components which make up a color value...
Definition: SbColor.h:30
float fogStart
Definition: SoEnvironmentElement.h:92
FogType
Definition: SoEnvironmentElement.h:41
virtual void print(FILE *file) const
Definition: SoReplacedElement.cpp:108
The SoEnvironmentElement class is yet to be documented.FIXME: write doc.
Definition: SoEnvironmentElement.h:30
The SoNode class is the base class for nodes used in scene graphs.Coin is a retained mode 3D visualiz...
Definition: SoNode.h:47
float fogVisibility
Definition: SoEnvironmentElement.h:91
The SoState class manages the Coin scenegraph traversal state data.The SoState class is used by actio...
Definition: SoState.h:35
virtual void init(SoState *state)
Definition: SoReplacedElement.cpp:79
SbColor fogColor
Definition: SoEnvironmentElement.h:90
SbColor ambientColor
Definition: SoEnvironmentElement.h:87
int32_t fogType
Definition: SoEnvironmentElement.h:89
The SoReplacedElement class is an abstract element superclass.This is the superclass of all elements ...
Definition: SoReplacedElement.h:30
The SbVec3f class is a 3 dimensional vector with floating point coordinates.This vector class is used...
Definition: SbVec3f.h:40
float ambientIntensity
Definition: SoEnvironmentElement.h:86
SbVec3f attenuation
Definition: SoEnvironmentElement.h:88